Description Usage Arguments Details Value Examples
Evaluate an input for the depth of its nesting.
1 | list_depth(xlist)
|
xlist |
Focal input |
If xlist = list()
, then technically the input value is a
list, but is empty (of length 0
), so depth is returned as 0
.
integer
value of the depth of the list.
1 2 3 4 | list_depth("a")
list_depth(list())
list_depth(list("a"))
list_depth(list(list("a")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.