scale_transform | R Documentation |
scale_transform()
transform specified columns in a data frame using
a provided scale. If divide = FALSE
, it's simply x * scale
, otherwise
it is x / scale
.
scale_transform(df, cols, scale = 100, divide = TRUE)
df |
A data frame. |
cols |
Names of columns to transform. |
scale |
Value to scale the vector(s) by. Defaults by 100 |
divide |
If |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.