traverse: Apply a function hierarchically to a forest

View source: R/traverse.R

traverseR Documentation

Apply a function hierarchically to a forest

Description

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

Usage

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

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?

Value

A forest.


UchidaMizuki/timbr documentation built on Oct. 15, 2024, 10:21 p.m.