how to convert data frame into list in r code example
Example 1: convert list to dataframe r
df <- as.data.frame(do.call(cbind, list))
Example 2: list to dataframe in r
df <- data.frame(matrix(unlist(l), nrow=length(l), byrow=T))
df <- as.data.frame(do.call(cbind, list))
df <- data.frame(matrix(unlist(l), nrow=length(l), byrow=T))