is_association_id: Is a string a GWAS Catalog association accession ID?

View source: R/parse-utils.R

is_association_idR Documentation

Is a string a GWAS Catalog association accession ID?

Description

Find which strings are valid GWAS Catalog association IDs (returns TRUE). Association IDs are tested against the following regular expression: ^\\d+$.

Usage

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