tags:

views:

29

answers:

1

Hello

I've been playing for a while with zoo package. I can read files using the format="%Y-%m-%d %H:%M" option

But how can I use this option when writing the results back to the disk? I mean, the default format seems to be "%m/%d/%Y %H:%M"

and I need to be "%Y-%m-%d %H:%M"

Where can I change it?

cheers

A: 

hi i am not sure i know exactly what you mean but i have dates that look like 'd/m/y' and this is what i use:

Day<-format(strptime(a$DATE, "%d/%m/%Y"), "%d")

i dont use the zoo package just the base

eliavs
Hi, finally what I do is converting the index from chron to POSIXct, that looks much better when writtn to a file or printed