R + combine a list of vectors into a single vector

后端 未结 6 776
死守一世寂寞
死守一世寂寞 2021-01-30 10:37

I have a single list of numeric vector and I want to combine them into one vector. But I am unable to do that. This list can have one element common across the list element. Fin

6条回答
  •  孤城傲影
    2021-01-30 10:54

    A solution that is faster than the one proposed above:

    vec<-unlist(lst)
    vec[which(c(1,diff(vec)) != 0)]
    

提交回复
热议问题