Description Usage Arguments Value Examples
View source: R/transformFeatures.R
Transform the feature columns in a dataframe while excluding the response column (if is exists)
1 | transformFeatures(df, FUN, colname.response = NULL)
|
df |
A dataframe of features (with or without a response column) |
FUN |
A function describing the transformation of each column |
colname.response |
(Optional) The name of a column containing the response classes. This can be omitted if the dataframe only contains feature columns. This is useful if the response vector is a separate object. |
Returns a dataframe of transformed features
1 | transformFeatures(df, function(x){ log10(x) }, colname.response = 'response')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.