Learn R Programming

normfluodbf (version 1.5.2)

norm_applier: Title: A normalization applier built on lapply.

Description

Applies a function over a list of attributes.

Usage

norm_applier(df, norm_scale = c("one", "hundred", "z-score", "raw", "decimal"))

Value

A data frame with attribute values obtained from the applied function using lapply.

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

Run this code
test_df <- as.data.frame(c(seq(40)))
colnames(test_df) <- "test"
test_df_norm <- norm_applier(test_df,norm_scale = 'one')

Run the code above in your browser using DataLab