withinfunc: Same as within, but the expr executed is a function. Unlike...

View source: R/support.r

withinfuncR Documentation

Same as within, but the expr executed is a function. Unlike within, the func will be executed within data. Functions will read variables from data, and if <<- is used then values will be assigned in data IF the variable already exists in data.

Description

Same as within, but the expr executed is a function. Unlike within, the func will be executed within data. Functions will read variables from data, and if <<- is used then values will be assigned in data IF the variable already exists in data.

Usage

withinfunc(data, func, ...)

Arguments

data

data to use for constructing an environment. Can be a list or a data frame.

func

function to evaluate in data

...

arguments to pass to func

Value

data modified


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.