Description Usage Arguments See Also
These functions were taken from the scales package and made as
S3 generics such that S3 methods can be written for these depending on the
classes of the x
and range
arguments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | censor(x, range = c(0, 1), only.finite = TRUE)
## S3 method for class 'numeric'
censor(x, range = c(0, 1), only.finite = TRUE)
squish(x, range = c(0, 1), only.finite = TRUE)
## S3 method for class 'numeric'
squish(x, range = c(0, 1), only.finite = TRUE)
squish_infinite(x, range = c(0, 1))
## S3 method for class 'numeric'
squish_infinite(x, range = c(0, 1))
|
x |
A vector on which an out-of-bounds operation must be performed. |
range |
An indicator or range outside of which |
only.finite |
If |
The documentation for these functions in the scales package:
censor
, squish
and
squish_infinite
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.