Skip to contents

This function calculates the depth of a nested list structure. Wrapper for purrr::pluck_depth.

Usage

depth(x)

Arguments

x

A list or nested list structure.

Value

An integer representing the depth of the list.