This function takes a variable from the phenotype matrix for example, diet treatment or sex and converts it to a covariate.
pheno2covar(data_obj, pheno_which)
Returns the data object with the specified traits removed
from the phenotype matrix and transferred where they will be used
as covariates. Information about assigned covariates can be retrieved
with get_covar
.
a Cape
object
vector of trait names to be used as covariates