Learn R Programming

csvwr (version 0.1.7)

rmap: Recursive map

Description

Applies function .f to each element in .x as per purrr::map. If the value of the element is itself a list, then the function is applied to that in turn. The process is followed recursively until an atomic value at the leaf nodes of the list is found.

Usage

rmap(.x, .f)

Value

A list

Arguments

.x

a list

.f

a function (called with elements of .x as the first argument)