tr.cont.scale {mFD} | R Documentation |
Scale continuous traits
Description
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")
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:
|
Value
A data frame of standardized trait values (columns) for each species (rows).
Author(s)
Camille Magneville and Sebastien Villeger
Examples
load(system.file('extdata', 'sp_tr_cestes_df', package = 'mFD'))
mFD::tr.cont.scale(sp_tr = sp_tr, std_method = 'scale_center')