1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transform.R
\name{proportion}
\alias{proportion}
\title{Rescale a vector relative to the maximal absolute value in the vector}
\usage{
proportion(x, na.rm = FALSE)
}
\arguments{
\item{x}{a numeric vector}
\item{na.rm}{a logical indicating whether missing values should be removed}
}
\description{
Rescale a vector relative to the maximal absolute value in the vector
}
\examples{
proportion(mtcars$mpg)
}
|