Description Usage Arguments Details Value See Also Examples
View source: R/standardize_data.r
Standarize (center and scale) all numeric variables in a data.frame.
1 |
data |
|
center |
Value |
scale |
Value |
The function applies the base
function scale
to all numeric variables in the input data.frame
. When the input options base
and scale
do not receive logical values as input, the option defaults to TRUE
.
data.frame
or tibble
(when package tibble
is available) object containing all varibales from the input data.frame
where all numeric variables are scaled according to base
and scale
.
1 2 3 | data <- supportR::create_data()
standardize_data(data = data, center = TRUE, scale = TRUE)
standardize_data(data = data, center = TRUE, scale = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.