octostep: Iterate lists getting a _window_ argument list to your...

Description Usage Arguments Value See Also

View source: R/octostep.R

Description

Besides a list octostep takes a function as input, applies it to each element of the list and returns the resulting list.

Usage

1
octostep(x, func, pad = 1L, use.names = TRUE, transform.previous = FALSE)

Arguments

x

List required.

func

Function with length(formals(func)) == 2L * pad + 1L required.

pad

Integer controlling how many items should be padded around the current item, must be within 1L:((length(x) - 1L) / 2L) for the ordinary use case with length(x) >= 2L * pad + 1L, otherwise 1L optional.

use.names

If x has a names attribute, should it be used for the return value? optional.

transform.previous

Should the previous arguments of the callback take the values of previous callbacks rather than the plain values of the initial input list optional.

Value

List.

See Also

mergeLists


chiefBiiko/octostep documentation built on May 20, 2019, 3:34 p.m.