Re: [R] 'save' saved object names instead of objects

2011-09-23 Thread Duncan Murdoch
On 23/09/2011 9:31 AM, Downey, Patrick wrote: Hello, I created an array to hold the results of a series of simulations I'm running: d.eta<- array(0,dim=c(3,3,200)) Then I tried to save the results using this: save(d.eta,file="D:/Simulation Results/sim 9-23-11 deta") When I later tried to r

Re: [R] 'save' saved object names instead of objects

2011-09-23 Thread Downey, Patrick
Thank you Jean Christophe and Sarah. You are both, of course, absolutely correct. -Original Message- From: Jean-Christophe BOUËTTÉ [mailto:jcboue...@gmail.com] Sent: Friday, September 23, 2011 9:44 AM To: Downey, Patrick Cc: r-help@r-project.org Subject: Re: [R] 'save' sa

Re: [R] 'save' saved object names instead of objects

2011-09-23 Thread Sarah Goslee
This is one of the rare cases in R where you don't want to save the return value. You loaded d.eta, and then promptly overwrote it with the return value, which is just the name of the object. > ls() character(0) > d.eta <- array(0,dim=c(3,3,200)) > dim(d.eta) [1] 3 3 200 > save(d.eta, file="de

Re: [R] 'save' saved object names instead of objects

2011-09-23 Thread Jean-Christophe BOUËTTÉ
Hi, did you try load(file="D:/Simulation Results/sim 9-23-11 deta") without the assignment ? look at ?load 2011/9/23 Downey, Patrick : > Hello, > > I created an array to hold the results of a series of simulations I'm > running: > > d.eta <- array(0,dim=c(3,3,200)) > > > > Then I tried to save th

Re: [R] 'save' saved object names instead of objects

2011-09-23 Thread Downey, Patrick
2011 9:32 AM To: r-help@r-project.org Subject: [R] 'save' saved object names instead of objects Hello, I created an array to hold the results of a series of simulations I'm running: d.eta <- array(0,dim=c(3,3,200)) Then I tried to save the results using this: save(d.eta,

[R] 'save' saved object names instead of objects

2011-09-23 Thread Downey, Patrick
Hello, I created an array to hold the results of a series of simulations I'm running: d.eta <- array(0,dim=c(3,3,200)) Then I tried to save the results using this: save(d.eta,file="D:/Simulation Results/sim 9-23-11 deta") When I later tried to reload them using this: d.eta <- load(file="D:/