list_depth: Determine the depth of a list

Description Usage Arguments Details Value Examples

Description

Evaluate an input for the depth of its nesting.

Usage

1
list_depth(xlist)

Arguments

xlist

Focal input list.

Details

If xlist = list(), then technically the input value is a list, but is empty (of length 0), so depth is returned as 0.

Value

integer value of the depth of the list.

Examples

1
2
3
4

weecology/directree documentation built on Dec. 23, 2021, 5:09 p.m.