normaliseDf: Normalise dataframe

Description Usage Arguments Value Examples

View source: R/normaliseDf.R

Description

This function will normalise the dataframe entered. If only certain columns need to be normalised, these can be specified. The order of the columns is kept the same

Usage

1
normaliseDf(dataframe, applicableColumns = c())

Arguments

dataframe

a dataframe to be normalised

applicableColumns

a vector of character of dataframe names to be normalised in the dataframe

Value

a dataframe with normalised values

Examples

1
2
3
dataframe <- data.frame(first = c(1:3), second = c(4:6), third = c(7:9))
normaliseDf(dataframe)
normaliseDf(dataframe, c("first", "third"))

christophperrins/Documentation-with-R documentation built on Nov. 4, 2019, 8:51 a.m.