how do you convert a list to dataframe in R code example Example: list to dataframe in r df <- data.frame(matrix(unlist(l), nrow=length(l), byrow=T))