Description Usage Arguments Value
This function trims a vector with an odd length, leaving n elements to
one or either side of the center element.
1 | trim(x, n = 5, LR = 1:2)
|
x |
The vector to trim |
n |
The number of elements to one or either side of the center element to keep |
LR |
A vector indicating which side to keep: To keep |
A trimmed vector according to n and side.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.