powered by
max depth of a list
max_depth(x)
number
list
max_depth(list(a = list(b = list(c = 1), d = 2, e = 3)))
Run the code above in your browser using DataLab