Learn R Programming

Zelig (version 4.2-1)

list.depth: Count the Depth of a List Object

Description

This function recursively computes the depth of a list object. That is, it determines how many layers or levels exist within the object.

Usage

list.depth(obj)

Arguments

obj
a vector or list object