Description Usage Arguments Details Value Examples
Check how many levels of nesting there are in a list.
1 | list.depth(x, d = 0)
|
x |
[list] The list whose depth is to be gauged. |
d |
[integer] A technical variable, not supposed to be defined by the user. Defaults to |
Checks how many times a list is nested. The function is recursive, but to save on execution time it doesn't have an elegant wrapper around it and has the argument d
which collects the result, and which the user is supposed not to tinker with.
[integer] The depth of x
.
1 2 | soundcorrs:::list.depth (list (1))
soundcorrs:::list.depth (list (list (1, list(2))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.