is_id: Determine if the object is a valid ID

View source: R/is_id.R

is_idR Documentation

Determine if the object is a valid ID

Description

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

Author(s)

Richèl J.C. Bilderbeek

See Also

to check multiple IDs, use are_ids

Examples

check_empty_beautier_folder()

# TRUE
is_id("anthus_aco")
is_id(3)

# FALSE
is_id(ape::rcoal(3))
is_id(NULL)
is_id(NA)

check_empty_beautier_folder()

beautier documentation built on Nov. 2, 2023, 5:08 p.m.