rescale_c | R Documentation |
Rescales transformed columns in a data frame based on the transformed columns in a second data frame. The columns are rescaled by subtracting values and then dividing by values.
rescale_c(data, data2 = data, colnames = character(0))
data |
The data frame to rescale. |
data2 |
A data frame to use for the rescaling. |
colnames |
A character vector of column names to transform and/or rescale. |
The column names can include a single function for the transform as well as the following suffices: + (subtract mean), - (subtract min), =(subtract min and add 1), / (divide by sd) and * (subtract mean and divide by sd).
The data frame with transformed and rescaled columns.
rescale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.