View source: R/transformPheno.R
transformPheno | R Documentation |
Transform phenotypes in a cross object; by default use a logarithmic transformation, though any function may be used.
transformPheno(cross, pheno.col=1, transf=log, ...)
cross |
An object of class |
pheno.col |
A vector of numeric indices or character strings (indicating phenotypes by name) of phenotypes to be transformed. |
transf |
The function to use in the transformation. |
... |
Additional arguments, to be passed to |
The input cross object with the transformed phenotypes
Danny Arends danny.arends@gmail.com
mqmscan
, scanone
data(multitrait)
# Log transformation of all phenotypes
multitrait.log <- transformPheno(multitrait, pheno.col=1:nphe(multitrait))
# Square-root transformation of all phenotypes
multitrait.sqrt <- transformPheno(multitrait, pheno.col=1:nphe(multitrait),
transf=sqrt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.