censor

0th

Percentile

Censor any values outside of range.

Censor any values outside of range.

Usage
censor(x, range = c(0, 1))
Arguments
x
numeric vector of values to manipulate.
range
numeric vector of length two giving desired output range.
Aliases
  • censor
Examples
censor(c(-1, 0.5, 1, 2, NA))
Documentation reproduced from package scales, version 0.1.0, License: MIT

Community examples

Looks like there are no examples yet.