prep_data {GABB} | R Documentation |
prep_data function
Description
This function helps user to transform and scale quantitative defined data (columns identitified from a given dataset) for better PCA and RDA outputs.
Usage
prep_data(data, quantitative_columns, transform_data_method, scale_data)
Arguments
data |
A data frame with at least one numeric column |
quantitative_columns |
Numeric vector of numeric columns position : c(1,2,4) |
transform_data_method |
Method of quantitative data transformation : "log", "sqrt4", "clr", "none" |
scale_data |
TRUE or FALSE. TRUE => scaling of quantitative columns |
Value
The transformed/scaled quantitative data frame
Examples
prep_data(mtcars, c(1:7), "log", TRUE)
[Package GABB version 0.3.8 Index]