These functions can be used to make copies of environments, or to get/assign all of the objects inside of an environment.
copyEnv(oldEnv, newEnv, all.names=FALSE)
- An environment to copy from
- An environment to copy to. If missing, a new environment with the same parent environment as oldEnv.
- Whether to retrieve objects with names that start with a dot.
copyEnv: This function will make a copy of the contents from
oldEnv and place them into
z <- new.env(hash=TRUE, parent=emptyenv(), size=29L) multiassign(c("a","b","c"), c(1,2,3), z) a <- copyEnv(z) ls(a)
Looks like there are no examples yet.