standardizeUnitScale: standardizeUnitScale

View source: R/StandardizeUnitScale.R

standardizeUnitScaleR Documentation

standardizeUnitScale

Description

standardizeUnitScale standardized a variable so its maximum is 1

Usage

standardizeUnitScale(afun, min0 = TRUE, maxValue = max(afun, na.rm = T))

Arguments

afun

A vector of measurements of a function.

min0

Must a minimum value be greater than or equal to 0? Defaults to TRUE.

maxValue

The maximum valye by which the vector will be standardized. Defaults to the vector's maximum.

Details

Takes a vector and then divides it by a maximum value.

Value

Returns a standardized vector.

Author(s)

Jarrett Byrnes.


jebyrnes/multifunc documentation built on May 25, 2022, 9:43 p.m.