Skip to contents

Determine if the object is a valid ID

Usage

is_id(x)

Arguments

x

an object, to be determined if it is a valid ID

Value

TRUE if x is a valid ID, FALSE otherwise

See also

to check multiple IDs, use are_ids

Author

Richèl J.C. Bilderbeek

Examples

check_empty_beautier_folder()

# TRUE
is_id("anthus_aco")
#> [1] TRUE
is_id(3)
#> [1] TRUE

# FALSE
is_id(ape::rcoal(3))
#> [1] FALSE
is_id(NULL)
#> [1] FALSE
is_id(NA)
#> [1] FALSE

check_empty_beautier_folder()