Description Usage Arguments Value Examples
Often it is desirable to remove a certain number or percentage of a vector.
This function will accept either an input number size
or percentage to be
removed. These can be removed from either the start or end of the vector, or
the vector can be sorted first and then the items can be removed from the start
or end.
1 2 |
x |
A vector of numeric values |
proportion |
The proportion of values to be removed. For example, if we wanted to remove 15 percent, the proportion entered would be 0.15. |
size |
The number of observations to be removed. |
side |
Where should the values be removed from. |
A vector that is shorter than the input.
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.