View source: R/all_custom_functions.R
standizDat | R Documentation |
The function standardizes all numerical variables (also integers) in a data frame while leaving all other variables unchanged.
standizDat(x, chngName = TRUE, onlyCenter = FALSE)
x |
A data frame. |
chngName |
A logical value indicating whether a tag should be added to the column names of all standardized variables. |
onlyCenter |
A logical value. If TRUE, the numerical variables are only centered and not scaled. |
Returns the standardized data frame.
d <- iris[1:10,]
d_st <- standizDat(d)
d_st
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.