View source: R/removeTrailing.r
removeTrailing | R Documentation |
Removes items from the end of a numeric vector that are equal to the value supplied
removeTrailing(x, val = 0)
x |
numeric vector |
val |
the trailing value to be removed |
Numeric vector x
without trailing val
conc = c(1:30,0,0,0,0)
conc
removeTrailing(conc, val = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.