From ggrothendieck at gmail.com  Sat Nov 10 14:11:16 2007
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sat, 10 Nov 2007 08:11:16 -0500
Subject: [Rd] years() in chron package not working in R 2.6.0 (PR#10415)
In-Reply-To: <20071109205508.90299282EFF7@mail.pubhealth.ku.dk>
References: <20071109205508.90299282EFF7@mail.pubhealth.ku.dk>
Message-ID: <971536df0711100511n4db7de36jc2a2b55affcb51a8@mail.gmail.com>

In chron, ?year says x must be a "dates" object and its not in the code below.

On Nov 9, 2007 3:55 PM,  <jputz at teainc.org> wrote:
> I loaded package chron in a newly installed version of R 2.6.0 and the
> years() function would not work.  (This worked in 2.5).
>
> =20
>
> > x<-as.Date("2006-01-01")
>
> > years(x)
>
> NULL
>
> =20
>
> >sessionInfo()
>
> R version 2.6.0 (2007-10-03)=20
>
> i386-pc-mingw32=20
>
> =20
>
> locale:
>
> LC_COLLATE=3DEnglish_United States.1252;LC_CTYPE=3DEnglish_United
> States.1252;LC_MONETARY=3DEnglish_United
> States.1252;LC_NUMERIC=3DC;LC_TIME=3DEnglish_United States.1252
>
> =20
>
> attached base packages:
>
> [1] tcltk     stats     graphics  grDevices utils     datasets  methods
> base=20=20=20=20=20
>
> =20
>
> other attached packages:
>
> [1] fCalendar_260.72  fEcofin_260.72    fUtilities_260.72 zoo_1.4-0
> spatial_7.2-36=20=20=20
>
> [6] RUnit_0.4.17      MASS_7.2-36       chron_2.3-15=20=20=20=20=20
>
> =20
>
> loaded via a namespace (and not attached):
>
> [1] grid_2.6.0     lattice_0.16-5 tools_2.6.0=20=20=20
>
> =20
>
> Thanks.
>
> =20
>
> John Putz
>
> Sr. Energy Analyst
>
> The Energy Authority
>
> 425-460-1137 (o)
>
> 206-910-5229 (c)
>
> =20
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] years() in chron package not working in R 2.6.0 (PR#10415)
Gabor Grothendieck