Learn R Programming

formattable (version 0.2.1)

proportion: 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

Run this code
# NOT RUN {
proportion(mtcars$mpg)
# }

Run the code above in your browser using DataLab