depthList: Determine depth of a list

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Determine depth of a list

Usage

1

Arguments

list

[list(.)] list to test.

Value

an integer value of the depth of a list.

Examples

1
2
3
4
5
x <- list(int = c(1:5),
          char = list(lower = c(letters[1:5]),
                      upper = c(LETTERS[1:5])))
depthList(x)
depthList(x[[1]])

EhrmannS/rasterTools documentation built on Feb. 4, 2019, 11:22 a.m.