Converts a character vector of genotype scores into two classes - one of which represents one homozygous state, and the other represents the other homozygous state and all heterozygotes
1 | make_nptest_classes(vec, level = 1, na_string = "u")
|
vec |
A character vector of genotype scores, each of which is made of two characters. An na_string may also be present |
level |
Either 1 or 2, indicating which homozygous state is to be compared to the other state/heterozygotes. Default is 1 |
na_string |
a string representing NA. Default is "u" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.