Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

copyEnv

Copy objects from one environment to another


Description

Copy objects from one environment to another

Usage

copyEnv(from, to, names = ls(from, all.names = TRUE))

Arguments

from

source environment

to

target environment

names

names of objects to copy

Author(s)

Neal Fultz

References

Examples

e1 <- list2env(list(a=1, b=2))
e2 <- new.env()
copyEnv(e1,e2)
ls(e2)

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.