oce.as.raw | R Documentation |
A version of as.raw() that clips data to prevent warnings
oce.as.raw(x)
x |
values to be converted to raw |
Negative values are clipped to 0, while values above 255 are clipped to 255;
the result is passed to as.raw()
and returned.
Raw values corresponding to x
.
Dan Kelley
x <- c(-0.1, 0, 1, 255, 255.1)
data.frame(x, oce.as.raw(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.