powered by
Check how many levels of nesting there are in a list.
list.depth(x, d = 0)
[list] The list whose depth is to be gauged.
[integer] A technical variable, not supposed to be defined by the user. Defaults to 0.
0
[integer] The depth of x.
x
# NOT RUN { soundcorrs:::list.depth (list (1)) soundcorrs:::list.depth (list (list (1, list(2)))) # }
Run the code above in your browser using DataLab