Strip leading / trailing zeros
Removes value
from rightmost/leftmost elements of a vector.
trim_trailing(x, value = 0) trim_leading(x, value = 0)
x |
a vector |
value |
a value to strip from x |
a new vector, with values at the right removed
trim_leading(c(0,0,0,0,1:5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.