reduce_vec | R Documentation |
Reduces length of vectors by keeping every nth
element.
reduce_vec(x, nth, start.with = 1)
x |
Input vector of any type. |
nth |
Numeric value. Every nth element is kept. If 1, every element is kept. If 2, every second element is kept, etc. |
start.with |
Element at which the counting starts. Defaults to 1.
E.g. if |
Vector of the same class as x
. Content depends on parameter adjustments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.