This function standardizes continuous traits. It can be useful before
computing functional space. You will have to choose which standardized
method to use based on your data. For this function to work, there must be
no NA in your sp_tr data frame.
Usage
tr.cont.scale(sp_tr, std_method = "scale_center")
Value
A data frame of standardized trait values (columns) for each species
(rows).
Arguments
sp_tr
a data frame of traits values (columns) for each species
(rows). Note that species names must be specified in the row names and
traits must be continuous.
std_method
a character string referring to the standardization
method. Possible values:
range (standardize by the range),
center (use the center transformation: \(x' = x - mean(x)\)),
scale (use the scale transformation: \(x' = \frac{x}{sd(x)}\)), or
scale_center (use the scale-center transformation:
\(x' = \frac{x - mean(x)}{sd(x)}\)).
Default is scale_center.