list_depth {spup} | R 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)
[Package spup version 1.4-0 Index]