Learn R Programming

beautier (version 2.6.12)

are_ids: Determine if x consists out of IDs

Description

Determine if x consists out of IDs

Usage

are_ids(x)

Value

TRUE if x, or all elements of x, are IDs

Arguments

x

the object to check if it consists out of IDs

Author

Richèl J.C. Bilderbeek

See Also

to check one ID, use is_id

Examples

Run this code
check_empty_beautier_folder()

# TRUE
are_ids("anthus_aco")
are_ids(c("anthus_aco", "anthus_nd2"))
are_ids(list("anthus_aco", "anthus_nd2"))
are_ids(c(1, 2))
are_ids(1)

# FALSE
are_ids(NULL)
are_ids(NA)
are_ids(c())
are_ids(ape::rcoal(3))
are_ids(c(ape::rcoal(3), ape::rcoal(4)))

check_empty_beautier_folder()

Run the code above in your browser using DataLab