[R] 'save' saved object names instead of objects
PDowney at urban.org
Fri Sep 23 15:46:15 CEST 2011
Thank you Jean Christophe and Sarah. You are both, of course, absolutely
From: Jean-Christophe BOUËTTÉ [mailto:jcbouette at gmail.com]
Sent: Friday, September 23, 2011 9:44 AM
To: Downey, Patrick
Cc: r-help at r-project.org
Subject: Re: [R] 'save' saved object names instead of objects
did you try
load(file="D:/Simulation Results/sim 9-23-11 deta") without the assignment
look at ?load
2011/9/23 Downey, Patrick <PDowney at urban.org>:
> I created an array to hold the results of a series of simulations I'm
> d.eta <- array(0,dim=c(3,3,200))
> <simulation goes here and populates the array but it's not important>
> 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:/Simulation Results/sim 9-23-11 deta")
> I got the following:
>  "character"
>  "d.eta"
> Why didn't it load the original object that I tried to save (the
> array)? Is the problem with how I'm saving or how I'm loading? Any
> explanation would be greatly appreciated.
> And to head off this question, I did check after the simulation,
> before saving, and the d.eta object is an array of numbers.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help