Description Usage Arguments Value Author(s) See Also Examples
trimSum
trims (shortens) a vector in such a way that
the last or first value represents the sum of trimmed values. User needs
to specify the desired length of a trimmed vector.
1 |
x |
numeric, a vector of numeric values |
n |
numeric, desired length of the output |
right |
logical, trim on the right/bottom or the left/top side |
na.rm |
logical, remove |
... |
arguments passed to other methods - currently not used |
Trimmed vector with a last/first value representing the sum of trimmed values
Gregor Gorjanc
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.