Re: [R] format.dates, chron and Hmisc

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue, 12 Jun 2007 11:17:35 -0700

On 6/10/07, R.H. Koning <r.h.koning_at_rug.nl> wrote:
> Hello, I have some problems in using chron, Hmisc, and lattice. First,
> using both chron and Hmisc, I get an error message when describing data:
>
> df$Date <- chron(df$Date,format=c("d/m/y"))
> > ll <- latex(describe(df),file="..//text//df.tex")
> Error in formatDateTime(dd, atx, !timeUsed) :
> could not find function "format.dates"
>
> Then, using a chron object and lattice, I get
>
> > plot.a <- xyplot(theta~Date|team,data=op.df.long,
> + strip = function(bg, ...) strip.default(bg = 'transparent', ...),
> + panel=function(x,y,...){
> + panel.xyplot(x,y,cex=0.4,col="black",...)
> + panel.loess(x,y,span=0.3,col="black",...)
> + panel.abline(h=0)
> + })
> > print(plot.a)
> Error in pretty(rng, ...) : unused argument(s) (format.posixt = NULL)

This one is a bug in lattice (there is some code to support chron objects, but evidently not many people use it). I will include a fix in the next update.

-Deepayan



R-help_at_stat.math.ethz.ch 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. Received on Tue 12 Jun 2007 - 18:47:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Jun 2007 - 19:32:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.