list_depth {spup} | R Documentation |
Function to find the level of list nesting
list_depth(List)
List |
an object of class 'list'. |
an integer; level of list nesting
Kasia Sawicka
a <- list(1,2)
list_depth(a)
a <- list(list(1, 2), 3)
list_depth(a)