cenv: concatenate environments

cenvR Documentation

concatenate environments

Description

to be able to call a function within a function and access variables use: ev = "bla" this.fun = function() anon() datatable = data.table() anon = function() with(cenv(datatable), print(ev)) this.fun()

Usage

cenv(env = environment())

Arguments

env

can be a data.frame/table, or list, or environment


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.