StandardizeData: StandardizeData

View source: R/dataframe.R

StandardizeDataR Documentation

StandardizeData

Description

StandardizeData

Usage

StandardizeData(
  data,
  method,
  no.variation = "warn",
  no.variation.value = 0,
  mean.zero = "warn"
)

Arguments

data

A data.frame or matrix.

method

The standardization method. Takes values "z-scores", "Mean centered","Range [-1,1]", "Range [0,1]", and "Standard deviation of 1".

no.variation

If "ignore", the absence of variation is ignored. Other options are "warn" and "stop".

no.variation.value

The value to assign to data where there is no variance, if the method requires variation.

mean.zero

If the method is "Mean of 1" and the mean is 0. Options are "ignore", "warn" and "stop".

Details

Mean of 1 multiples by a constant to set the mean to 1, whereas "Mean centered" subtracts a constant such that each variable has a mean of 0.


Displayr/flipTransformations documentation built on Feb. 26, 2024, 12:47 a.m.