Process a table of phenotypes
Given a data.frame containing phenotypic variables, select the desired columns and transform them to the desired types.
Data.frame with the phenotypic features
Vector with the names or the positions of the desired variables.
Vector with the types of the variables.
preparePhenotype supports five types of variables. Categorical
and continuous correspond to factor and numerical types in R. The other three
are genomic models as defined in
SNPassoc: dominant, recessive and additive.
In order to use these types, only two alleles can be present and genotypes should
be specified in the form a/b.
If transformation of variables is not needed, the variable_types can be passed
as a vector of
Data.frame with the columns selected and with the types desired.
1 2 3 4 5