R/as.environment.R

Defines functions with.db.obj as.environment.db.obj

Documented in as.environment.db.obj with.db.obj

as.environment.db.obj <- function(x, ...)
{
    lst <- sapply(names(x), function(i) x[[i]], simplify=FALSE)
    list2env(lst)
}

## ----------------------------------------------------------------------

with.db.obj <- function(data, expr, ...)
    eval(substitute(expr), as.environment(data), enclos=parent.frame())

Try the PivotalR package in your browser

Any scripts or data that you put into this service are public.

PivotalR documentation built on March 13, 2021, 1:06 a.m.