https://github.com/cran/simecol
Tip revision: 5908a866670aafaff273e12d674fd6d7212df57d authored by Thomas Petzoldt on 04 September 2009, 00:00:00 UTC
version 0.6-10
version 0.6-10
Tip revision: 5908a86
addtoenv.R
## environment manipulation function
## Warning: use carefully and avoid name mangling
## solution provided by Gabor Grothendieck (replaces older own function)
## --> this function is deprecated and may be removed in further versions
addtoenv <- function(L, p = parent.frame()) {
for(nm in names(L)) {
assign(nm, L[[nm]], p)
environment(p[[nm]]) <- p
}
L
}