I have a list output that looks like this snippet:
[[1]]
[1] 109
[[2]]
integer(0)
[[3]]
[1] 80
Is there a way to transform it into this format?
C1   C2
1    109
2    0 (or NA)
3    80
Not sure where to even start... If I unlist it I noticed that I lose my integer(0) positions, which are important for me to keep.
 
     
     
     
    