Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

How can I convert a list of lists into a data frame for export?

$
0
0

I've generated a list of lists containing data for manual review. The sublists are a combination of text and numeric data, however they are all being treated as character data by R. Each sublist holds a different number of values. For example

list_of_lists[[1]]

might return

[[1]]
[1] "company name""company name""29""30"

while

list_of_lists[[2]]

might return

[[2]]
[1] "company name""company name""company name"
[4] "1253""4980""4981"

There are 359 sublists inside my list of lists, and I'd like to export them all to excel for manual review. The problem I'm running into is converting my list of lists to a dataframe that I can export to excel, specifically due to the fact that all my lists are different lengths. I don't need to maintain data types or anything like that, just some help getting the data to excel while maintaining readability.

Thank you!


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>