Applies a function over a list of attributes.
Usage
norm_applier(df, norm_scale = c("one", "hundred", "z-score", "raw", "decimal"))
Arguments
- df
A data frame.
- norm_scale
This parameter takes sub-parameters: 'raw’ , hundred’ , 'one’ , 'z-score' , or 'decimal’ , which denotes the normalization type or scale.
Examples
test_df <- as.data.frame(c(seq(40)))
colnames(test_df) <- "test"
test_df_norm <- norm_applier(test_df,norm_scale = 'one')