transform: Transform numeric data

Description Usage Arguments Value Examples

Description

Transform numeric data for modelling and plotting

Usage

1
transform(x, type = "standard")

Arguments

x

Numeric vector to be transformed.

type

The type of transformation to apply. Can be 'standard': with a mean 0 and sd 1; 'standard.log': with a mean 0 and sd 1 but all values > 0 to allows for future log transformation; 'centre': mean of 0.

Value

Numeric vector with transformed values.

Examples

1
2
#Mean 0 and sd 1
transform(mtcars$disp, type = "standard")

LiamDBailey/MyFuncs documentation built on June 5, 2019, 5:10 p.m.