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 July 5, 2025, 6:33 a.m.