The depth of a vector is how many levels that you can index/pluck into it.
pluck_depth()
was previously called vec_depth()
.
pluck_depth(x, is_node = NULL)
A vector
Optionally override the default criteria for determine an
element can be recursed within. The default matches the behaviour of
pluck()
which can recurse into lists and expressions.
An integer.