R/utils.R
max_depth.Rd
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) #> [1] 3