I have a vector of integer e.g. c(1,2,0,3,4)
and I want 0 to be a delimiter and get list(c(1,2), c(3,4))
. Is there any libary function I can use?
I have a vector of integer e.g. c(1,2,0,3,4)
and I want 0 to be a delimiter and get list(c(1,2), c(3,4))
. Is there any libary function I can use?