A user has a nested list of data whose length is 130 and each item is a list of length 25.How to convert such list into a dataframe?

352    Asked by NehaTambe in Data Science , Asked on Nov 29, 2019
Answered by Neha Tambe

To convert such list into a dataframe, we can use the following code

df <-data.frame(matrix(unlist(l),nrow=132,byrow=T),stringsAsFactors=FALSE)

Where l is the list of list.



Your Answer

Interviews

Parent Categories