Description Usage Arguments Examples
Select every second, third, fourth etc. element (or slice/hyperplane) of an object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | every_nth(...)
## Default S3 method:
every_nth(x, n = 2, start = 1, ...)
## S3 method for class 'matrix'
every_nth(x, n = 2, start = 1, margin = 1, ...)
## S3 method for class 'array'
every_nth(x, n = 2, start = 1, margin = 1, ...)
## S3 method for class 'data.frame'
every_nth(x, n = 2, start = 1, margin = 1, ...)
## S3 method for class 'list'
every_nth(x, n = 2, start = 1, ...)
|
... |
further arguments passed to methods |
x |
an object to be selected from |
n |
selection "step size" |
start |
integer in [1:n] specifying the start of selection |
margin |
what margin to select along |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.