lapply_depth: lapply at some list dept

View source: R/lapply_depth.R

lapply_depthR Documentation

lapply at some list dept

Description

Very simple replacement for purrr::map_depth to remove package dependency, but not very robust. Internal package use only in select cases.

Usage

lapply_depth(.x, .depth, .f, ...)

Arguments

.x

[list] List to apply function to

.depth

[integer] Depth to apply function at

.f

[function] Function to apply

...

[any] Additional arguments to pass to .f

Value

[list] List with function applied at target depth


vmTools documentation built on Aug. 8, 2025, 7:28 p.m.