Description Usage Arguments Value
View source: R/encodeGenotypes.R
Encode genotype strings as genotype integers.
1 2 3 4 5 6 7 8 9 10 | encodeGenotypes(x, genotypes)
## S3 method for class 'character'
encodeGenotypes(x, genotypes)
## S3 method for class 'data.frame'
encodeGenotypes(x, genotypes)
## S3 method for class 'matrix'
encodeGenotypes(x, genotypes)
|
x |
Object containing genotype strings. |
genotypes |
Sorted character vector of genotype symbols. Input genotype strings should be elements of this vector. |
Object of the same class and dimensions as input object, but with
genotype strings encoded as genotype integers. Missing values ('-'
)
are replaced with the character NA
value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.