cap | R Documentation |
Set all elements of a vector or matrix above a certain value to that value
cap(x, at)
x |
A numeric vector or matrix. |
at |
Value at which to cap |
x
but with values greater than at
set equal to at
cap(1:5, at = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.