max_depth: Maximum depth of a list

View source: R/utils.R

max_depthR Documentation

Maximum depth of a list

Description

Maximum depth of a list

Usage

max_depth(x, depth = 0)

Arguments

x

A list.

depth

The depth of the list.

Examples

x <- list(
  a = list(b = list(c = 1)),
  d = list(e = list(f = 2))
)
max_depth(x)

thisutils documentation built on May 24, 2026, 5:07 p.m.