I've seen several variations of this question on the site, but not this particular problem.
I have created an unnamed list of numeric vectors. Each vector is varying in length. For example, the first few entries might look like:
data[[1]]
1 2 3
data[[2]]
1 2 3 4
data[[3]]
1 3
I am trying to export this into a table format, so I am trying to convert it to a dataframe that looks something like:
1 2 3 NA
1 2 3 4
1 3 NA NA
I've tried various methods like do.call, rbindlist and as.data.frame. I've also tried creating my dataset as a list of lists instead of a list of vectors.
Thank you for any suggestions.