list_depth: Function to find the level of list nesting

View source: R/list_depth.R

list_depthR Documentation

Function to find the level of list nesting

Description

Function to find the level of list nesting

Usage

list_depth(List)

Arguments

List

an object of class 'list'.

Value

an integer; level of list nesting

Author(s)

Kasia Sawicka

Examples


a <- list(1,2)
list_depth(a)

a <- list(list(1, 2), 3)
list_depth(a)


ksawicka/spup documentation built on Jan. 14, 2024, 11:28 p.m.