standardizeUnitScale standardized a variable so its maximum is 1

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.

Value

Returns a standardized vector.

Details

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

Author

Jarrett Byrnes.