Learn R Programming

timbr (version 0.2.2)

map_forest: Apply a function hierarchically to a forest

Description

Apply a function hierarchically to a forest in the climbing or descending direction.

Usage

map_forest(.x, .f, ..., .climb = FALSE)

Value

A forest.

Arguments

.x

A forest

.f

A function, formula, or vector (not necessarily atomic).

...

Additional arguments passed on to the mapped function.

.climb

Climbing or descending?