with: Evaluate an Expression in a Data (List) Environment

Description Usage Arguments Value See Also

Description

Evaluate an R expression in an environment constructed from a data list, possibly modifying the original data.

Usage

1
2
3
4
## S3 method for class 'data.list'
with(data, expr, func = "I", ...)
## S3 method for class 'data.list'
within(data, expr, ...)

Arguments

data

A data list.

expr

Expression to evaluate.

func

A character string giving the name of a function to process data before evaluating expr. Defaults to "I" which just uses data unaltered. Another useful choice is "as.data.frame".

...

Arguments to pass to func. Not used with within.data.list.

Value

For with, the value of the evaluated expr. For within, the modified data.list.

See Also

with


stevencarlislewalker/multitable documentation built on May 30, 2019, 4:44 p.m.