norm_pheno: Mean-center and normalize phenotypes

Description Usage Arguments Value Examples

View source: R/norm_pheno.R

Description

This function is a wrapper for mean-centering normalizing and standardizing the trait matrix. in a data_obj.

Usage

1
norm_pheno(data_obj, mean_center = TRUE)

Arguments

data_obj

a Cape object mean_center a logical value indicating whether the traits should be mean centered. If FALSE, the traits are only normalized.

mean_center

mean center

Value

the data object is returned. The pheno slot of the data object will have normalized and/or mean-centered traits. The function also preserves the original trait matrix in a slot called raw_pheno.

Examples

1
2
3
4
## Not run: 
data_obj <- norm_pheno(data_obj)

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.