normalize_column: A function that normalizes one column.

View source: R/normalize_column.R

normalize_columnR Documentation

A function that normalizes one column.

Description

A function that normalizes one column or vector. It returns the new column or vector.

Usage

normalize_column(column, na.rm = FALSE)

Arguments

column

A vector (or column) to be normalized

na.rm

A boolean that regulates if the NA values are excluded. Default is FALSE.

Value

Returns a normilized new column to overwrite the old one or add to a new column.

Author(s)

Sam Loontjens

Examples

mydata$A <- normalize_column(mydata$A)

or
mydata$normA <- normalize_column(mydata$A)


SamLoontjens/HandlingLicorFiles documentation built on Nov. 14, 2023, 6:32 a.m.