Skip to content
Prev 13748 / 15274 Next

write.csv conversion problem

On Thu, Mar 10, 2016 at 11:58 AM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:
You are totally right: it is an xts object.
I probably mis-phrased it but I meant to say that the format inside the
cell is yyyy-mm-dd
while purely focusing on the problem of losing that date format with the
column being
converted into an integer...sorry bad language.
All problems solved now:

- I am reading/writing from/to zoo objects and casting back to xts with
as.xts:

write.zoo("myfile.csv", sep = ",", quote = FALSE)

myData <- as.xts(read.zoo("myFile.csv",sep=",",tz="",header=T))

Thanks to everyone.
Peter