Description Usage Arguments Value Examples
Clip (i.e., limit) the values in a vector, matrix, or array.
1 2 3 4 |
x |
A vector, matrix, or multi-way array. |
.min |
.minimum value. |
.max |
.maximum value. |
... |
Additional optional arguments. |
Returns x
with values outside the interval
[.min
, .max
] clipped to the interval edges. That is, values
in x
smaller than .min
become .min
, and values larger
than .max
become .max
.
1 2 |
Attaching package: ‘ramify’
The following object is masked from ‘package:graphics’:
clip
[1] 3 3 3 4 5 6 7 8 8 8
[,1] [,2] [,3] [,4] [,5]
[1,] 0.5989679 0.25046339 1.0000000 0.07318191 1.0000000
[2,] -0.8255741 -0.08805155 -1.0000000 -1.00000000 1.0000000
[3,] 1.0000000 0.21415037 -0.1991875 0.95977401 -0.9345522
[4,] 0.2145139 -0.53433752 -0.8435579 -0.66962534 1.0000000
[5,] -0.3940349 -0.34991819 1.0000000 0.33854212 -0.9484725
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.