Converting List to Data Frame in R
The fastest and easiest way to convert a list to a data frame in R is to use the “as.data.frame()” function. It checks whether an input object is a data frame and, if not, tries to convert it. main_list <- list( col1 = c(1, 2, 3), col2 = c(4, 5, 6), col3 = c(7, 8, 9) … Read more