How to merge vectors into a list in R? -


what is:

 > list("",rep(0,2))  [[1]]  [1] ""   [[2]]  [1] 0 0 

but expect this:

 [[1]]  [1] ""   [[2]]  [1] 0   [[3]]  [1] 0 

does know how merged result? thanks!

you want:

c(list(""),rep(0,2)) 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -