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

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat, 10 Nov 2007 08:11:16 -0500

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
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 10 Nov 2007 - 13:22: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 Sat 10 Nov 2007 - 13:30:16 GMT.

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