Skip to contents

max depth of a list

Usage

max_depth(x)

Arguments

x

list

Value

number

Examples


max_depth(list(a = list(b = list(c = 1), d = 2, e = 3)))
#> [1] 3