proportion: Rescale a vector relative to the maximal absolute value in...

View source: R/transform.R

proportionR Documentation

Rescale a vector relative to the maximal absolute value in the vector

Description

Rescale a vector relative to the maximal absolute value in the vector

Usage

proportion(x, na.rm = FALSE)

Arguments

x

a numeric vector

na.rm

a logical indicating whether missing values should be removed

Examples


proportion(mtcars$mpg)


renkun-ken/formattable documentation built on Dec. 7, 2024, 10:19 p.m.