walk: Apply a function to each element of a list or vector (without...

View source: R/utils-sfmisc.R

walkR Documentation

Apply a function to each element of a list or vector (without returning anything)

Description

Like lapply, but return .x instead of the results of .f

Usage

walk(.x, .f, ...)

Arguments

.x

an atomic vector or a list

.f

a function

...

arguments passed on to .f

Value

.x

Examples

walk(month.name, print)

s-fleck/sfmisc documentation built on Nov. 21, 2023, 12:29 a.m.