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