Improved Run Length Encoding
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | rle2(x, change, tolerance)
## Default S3 method:
rle2(x, change = 0, tolerance = sqrt(.Machine$double.eps))
## S3 method for class 'integer'
rle2(x, change = 0, tolerance = 0)
## S3 method for class 'factor'
rle2(x, change = NULL, tolerance = NULL)
## S3 method for class 'character'
rle2(x, change = NULL, tolerance = NULL)
## S3 method for class 'Date'
rle2(x, change = 0, tolerance = 0)
|
x |
vector |
change |
expected change between subsequent values;
|
tolerance |
numeric value; maximal difference between subsequent values.
For |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.