Description Usage Arguments Details Value Examples
truncare
will truncate a vector with replacing elements greater or less than
given bounds with replacement values (missing by default).
censor
is a special case that uses the upper and bound values as the
replacements.
1 2 3 4 |
x |
A vector |
left, right |
Boundary values for truncation |
newleft, newright |
Value to replace truncated elements |
leq, geq |
If |
The more intuitive name truncate
was not chosen, because a base function truncate
already has that name. Truncare is the Latin origin of truncate.
Vector of the same size as x
, with truncated elements replaced.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.