normalSNP: Normalize SNPs values

Description Usage Arguments Value Examples

View source: R/normalSNP.R

Description

SNPs values, introduced as numerical, are normalized to be used in lineal models.

Usage

1
normalSNP(snps)

Arguments

snps

Numerical vector or matrix representing the SNPs in the form: 0 homozygote recessive, 1 heterozygote, 2 homozygote dominant.

Value

Numerical vector or matrix with the snps normalized.

Examples

1
2
3
snps <- c(1, 0, 0, 1, 0, 0, 2, 1, 2)
normSNPs <- normalSNP(snps)
normSNPs

MEAL documentation built on Nov. 17, 2017, 9:23 a.m.