Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d3ef5a4994
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.387 kB
\name{squish_infinite}
\alias{squish_infinite}
\title{Squish infinite values to range.}
\usage{
squish_infinite(x, range = c(0, 1))
}
\arguments{
\item{x}{numeric vector of values to manipulate.}
\item{range}{numeric vector of length two giving desired
output range.}
}
\description{
Squish infinite values to range.
}
\examples{
squish_infinite(c(-Inf, -1, 0, 1, 2, Inf))
}
Jump to Line
Something went wrong with that request. Please try again.