Description Usage Arguments Details Value Author(s) Examples
View source: R/r-utility-clip.R
This function clips numeric values in an input vector to a specified range. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 |
v |
a numeric vector |
min |
the minimum value |
max |
the maximum value |
The min
and max
arguments specify the permitted
range of values in v
and all values outsided this range are
clipped to this range.
A copy of v
with all values below min
replaced by
min
and all values above max
replaced by max
.
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 | clip.val(1:20, 5, 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.