Learn R Programming

vmTools (version 1.0.1)

lapply_depth: 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, ...)

Value

[list] List with function applied at target depth

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