clip_within_range | R Documentation |
This function clips a vector to lie within a range.
clip_within_range(x, range)
x |
A vector, to be clipped. |
range |
A vector of two numbers, used to clip |
A vector, as inputted, solely comprising values within the range specified by range
, inclusive.
Edward Lavender
clip_within_range(1:10, c(5, 6))
clip_within_range(stats::runif(10, -10, 10), c(-9, 9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.