decodeGenotypes: Decode genotype integers to genotype strings.

Description Usage Arguments Value

View source: R/decodeGenotypes.R

Description

Decode genotype integers to genotype strings.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
decodeGenotypes(x, genotypes, missing.value = NA_character_)

## S3 method for class 'data.frame'
decodeGenotypes(x, genotypes,
  missing.value = NA_character_)

## S3 method for class 'integer'
decodeGenotypes(x, genotypes, missing.value = NA_character_)

## S3 method for class 'matrix'
decodeGenotypes(x, genotypes, missing.value = NA_character_)

Arguments

x

Object containing genotype integers.

genotypes

Sorted character vector of genotype symbols. Input genotype integers should be valid indices of this vector.

missing.value

If set to a missing value symbol ('-'), NA values are converted to the given symbol.

Value

Object of same class and dimensions as input object, but with genotype integers decoded to genotype strings.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.