Be the following vector:
x <- c(1, 2, "a", 2, 3, 4, "a", 3)
I need to cut a vector in multiple vectors contained in a list, starting from an element of the same vector, in this case from "a" :
[[1]]
[1] 1 2
[[2]]
[1] 2 3 4
[[3]...
asked by
11.09.2018 / 01:18