[R] error in seq.POSIXt?

Brandon Whitcher whitcher at cgd.ucar.edu
Sat Jun 1 05:05:04 CEST 2002

On Fri, 31 May 2002, Don MacQueen wrote:

> Nothing jumps out at me, I'm sorry to say.
> But in the meantime, I am wondering if it wouldn't be easier to
> extract only the
> winters with something like
>     datevec[format(datevec,'%m') %in% c('12','01','02') &
>             format(datevec,'%m-%d' != '02-29']
> where datevec is the vector of days associated with your data, as an
> object of class POSIXct or POSIXlt.
> Then use something like
>    table(format(datevec,'%Y'))
> to check that you have 90 of each.

Thanks for the tip.


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list