| trim_vec | R Documentation |
Trim the tailing zeroes from a long vector
trim_vec(vec)
vec |
Vector. Final elements may be zero. |
A vector whose length is shorter than the original, if there were trailing zero elements
trim_vec(c(1:10, rep(0,3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.