powered by
Maximum depth of a list
max_depth(x, depth = 0)
A list.
The depth of the list.
x <- list( a = list(b = list(c = 1)), d = list(e = list(f = 2)) ) max_depth(x)
Run the code above in your browser using DataLab