Learn R Programming

ProduceR (version 1.0)

get_recursion_depth: get_recursion_depth

Description

get recursion depth of a list

Usage

get_recursion_depth(x, depth = 0)

Value

integer

Arguments

x

: input list

depth

: depth of x in another list (1 if x in a list. 2 if x is in a list of lists. Etc.)