is_rs_id {gwasrapidd} | R Documentation |
Is a string a valid rsID?
Description
Find which strings are valid SNP reference IDs, i.e., of the form rs[0-9]+. Please note that this only does a syntax validation on the strings. It does not check whether the actual IDs exist in dbSNP.
Usage
is_rs_id(str, convert_NA_to_FALSE = TRUE)
Arguments
str |
A character vector of putative SNP reference IDs of the form rs[0-9]+. |
convert_NA_to_FALSE |
Whether to preserve |
Value
Returns a logical vector of the same length as str
,
TRUE
for strings that are valid rs IDs, and FALSE
otherwise.
[Package gwasrapidd version 0.99.18 Index]