Mathematical functions that work independently elementwise on vectors described in Math are implemented for
rle objects. See Details for list of exceptions.
Supported functions include all elements of the S3 Math
group excluding the "cumulative" ones, which are not supported at
this time and will raise an error. As of this writing, functions
supported include (from R help)
cummin are not
supported at this time and will raise an error.
In every supported case, the call should result in an
rle that would have resulted had the call been applied to the
original (uncompressed) vector, then compressed using
rle. (At no point in the calculation is the uncompressed
vector actually constructed, of course.)
By default, the functions do not merge adjacent
runs with the same value. This must be done explicitly with
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.