I have a list of 3000 vectors in R. How can I create a data frame from the first 1000 elements of this list?
Cheers
I have a list of 3000 vectors in R. How can I create a data frame from the first 1000 elements of this list?
Cheers
You can do:
data.frame(myList[1:1000])
This makes the assumption that the vectors are all the same length. If they are not, values will be recycled.