s2bak.scale | R Documentation |
Scales columns to a mean of 0 and standard deviation of 1. Does not scale binary and categorical predictors. If providing projected data as well, then it will scale them using the mean and standard deviation of the inputted environment and output both as a list.
s2bak.scale(data, project = NA, getScaleValues = FALSE)
data |
Values to scale, with column names indicating the variable |
project |
Projected values to scale, using the mean and standard deviations of 'env'. If NA, then the function will only scale the environmental values provided |
getScaleValues |
Return mean and standard deviations of each factor |
Returns a data.frame of scaled columns for non-categorical and non-binary variables. If getScaleValues or project data is provided, returns as a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.