is_efo_id: Is a string an EFO trait ID?
Description
Find which strings are valid EFO trait IDs (returns
TRUE). EFO trait IDs are tested against the following regular
expression: ^EFO_\\d{7}$.
Usage
is_efo_id(str, convert_NA_to_FALSE = TRUE)
Arguments
- str
A character vector of strings.
- convert_NA_to_FALSE
Whether to treat NA as NA
(convert_NA_to_FALSE = FALSE) or whether to return FALSE when
an NA is found (convert_NA_to_FALSE = TRUE).