I am trying to run the below code line to create a data frame from a list with varying sublists of different lengths as you can see in the error. Attached image shows the lists stored under (Table_match_list).
How do we bypass this, so that I would still be able to create a data frame. Any idea please.
CODELINE: content_table_df <- as.data.frame(Table_match_list)
ERROR: Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 102, 98, 99
Thank you
data.frame
? The premise of the frame is that each row is an "observation", all values on that row are associated together somehow. In your case, RonakShah's answer (that will work) converts three vectors of unrelated observations into associated observations. There is a not-small flaw in this logic. If you know that they were at one point associated like this, then I suggest you go back into whatever processing you did on it that would have reduced the lengths. If not, then projecting that presumption seems wrong. – r2evans