An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-ecology/attachments/20120211/e835cf66/attachment.pl>
How can I combine several workspaces into one?
4 messages · lgj200306, Peter Solymos, Gian Maria Niccolò Benucci +1 more
Guojun,
Make lists of them with this function:
fun <- function(file) {
x <- new.env()
load(file, x)
as.list(x)
}
HTH,
Peter
On Fri, Feb 10, 2012 at 1:52 PM, lgj200306 <lgj200306 at 163.com> wrote:
Hi, everyone! I have several R workspaces, with each contains many files. I want to combine these workspaces into one. Which command should I use to achieve my target? Thank you very much and best wishes for you! Guojun Lin Feb. 10th, 2012 ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
1 day later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-ecology/attachments/20120211/595ba2ab/attachment.pl>
1 day later
I also would recommend loading all of your workspaces and saving the result as a new workspace. However, you should be aware of the potential for data loss if workspaces contain like-named objects. For example, if your active workspace includes an object "x" and you load another workspace with another object "x," the latter will replace the former. lgj200306 wrote
I have several R workspaces, with each contains many files. I want to combine these workspaces into one.
----- Glen Sargeant Research Wildlife Biologist -- View this message in context: http://r-sig-ecology.471788.n2.nabble.com/How-can-I-combine-several-workspaces-into-one-tp7274190p7280706.html Sent from the r-sig-ecology mailing list archive at Nabble.com.