centre: Function to centre or standardise a vector

View source: R/centre.R

centreR Documentation

Function to centre or standardise a vector

Description

Function to centre or standardise a vector

Usage

centre(x, standardise = F)

Arguments

x

Numeric vector

standardise

Should x be rescaled to have a mean of 0 and a standard deviation of 1? Also known as the z-score

Value

Vector of same length as x

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.