list_depth: Find the maximum depth of a list

View source: R/utils.R

list_depthR Documentation

Find the maximum depth of a list

Description

Descend a list and find the maximum number of levels in a list.

Usage

list_depth(x)

Details

A possibly nested list of lists is descended to determine the maximum number of levels.

Value

The maximum number of levels in the list.

Source

This function and the documentation are derived from plotrix::listDepth(). The function is defined separately in prettyGraphics to reduce reliance on non-default packages.


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.