The vector is like this:
c(1,2,3) #[1] 1 2 3
I need something like this:
list(1,2,3) #[[1]] #[1] 1 # #[[2]] #[1] 2 # #[[3]] #[1] 3
I tried this:
list(c(1,2,3)) #[[1]] #[1] 1 2 3
Simple, just do this:
as.list(c(1,2,3))
1.4m articles
1.4m replys
5 comments
57.0k users