Determine if the object is a valid ID

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

# 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