I have a list that has some lists inside (data at the end), and at the very end, it has a dataframe. How can I count how many dataframes are in total?
I was trying with:
sapply(b, function(x) sum(is.data.frame(x))
But it only counted at the first level, what can I do to get to the very last level?
How can I accomplish this?
Data
dput() is massive, (even in the smallest example), so I upload it here