On Mon, Aug 16, 2010 at 8:50 PM, skan <juanp...@gmail.com> wrote:
>
> Oh, I got it with these code:
>
> tmp <- read.table("file.txt")
> mydata <- zoo(z$V3, as.chron(paste(z$V1,z$V2)))
>
> but that way I cannot specify the format of the date
>

The default method of as.chron has a format= argument which uses the %
codes shown in the Details section of ?strptime

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to