proportion {formattable}R 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)

[Package formattable version 0.2.1 Index]