truncate | R Documentation |
Truncate a numeric vector
truncate(x, lower, upper)
x |
A numeric vector |
lower |
Lower bound |
upper |
Upper bound |
trunc(rnorm(100,3,6),0,7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.