discard

0th

Percentile

Discard any values outside of range.

Discard any values outside of range.

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

Community examples

Looks like there are no examples yet.