[R] write.zoo
David Winsemius
dwinsemius at comcast.net
Tue Mar 26 22:00:26 CET 2013
On Mar 26, 2013, at 12:38 PM, netra timalsina wrote:
> Hei,I am writing a zoo object and then loading it shows the following error message.any suggestion would be appreciated? #create zoo seriesreg.zoo <- zooreg(1:100, seq(from=as.Date("1999-01-01 "),'along.with'=100, by= "1 day"))
> #write zoo series
> write.zoo(reg.zoo ,file= "test.Rdata")
Why are you writing an object that you have not yet created?
> #load zoo objectnp <- load("test.Rdata")
And why are you mixing "write"-objects with "load"-operations"?
"write" <--> "read" ::: "save" <--> "load"
Furthermore if you "load" an image file, the object names that existed at the time of the 'save' are included in the file and get assigned at the time of the 'load'. 'save' and 'load' operate via side-effects, as do the base plot commands.
> #error message"Error: bad restore file magic number (file may be corrupted) -- no data loaded
> In addition: Warning message:
> file 'temp_mette_1999_2009_zoo.Rdata' has magic number '"Inde'
> Use of save versions prior to 2 is deprecated" I am using R 2.15.1. thanx in advance Netra
> [[alternative HTML version deleted]]
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list