powered by
Function to find the level of list nesting
list_depth(List)
an integer; level of list nesting
an object of class 'list'.
Kasia Sawicka
a <- list(1,2) list_depth(a) a <- list(list(1, 2), 3) list_depth(a)
Run the code above in your browser using DataLab