Skip to content

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:
1 day later
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
-----
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.