is_rs_id | R Documentation |
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.
is_rs_id(str, convert_NA_to_FALSE = TRUE)
str |
A character vector of putative SNP reference IDs of the form rs[0-9]+. |
convert_NA_to_FALSE |
Whether to preserve |
Returns a logical vector of the same length as str
,
TRUE
for strings that are valid rs IDs, and FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.