normalise: scale each element by the arithmic mean

View source: R/utility_math_funs.R

normaliseR Documentation

scale each element by the arithmic mean

Description

scale each element by the arithmic mean

Usage

normalise(vector, scalar = 1, na.rm = T)

Arguments

vector

numeric vector to normalise

scalar

multiplier to change average values

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Details

na's will be ignored

Value

vector of normalised values to have mean = scalar


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.