is_efo_id: Is a string an EFO trait ID?

View source: R/parse-utils.R

is_efo_idR Documentation

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).

Value

A logical vector.


ramiromagno/gwasrapidd documentation built on Jan. 3, 2024, 10:21 p.m.