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)


spup documentation built on May 29, 2024, 5:10 a.m.