[R] classes with chron slots
Gabor Grothendieck
ggrothendieck at gmail.com
Thu Jun 23 16:13:31 CEST 2005
On 6/23/05, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> On 6/23/05, Sebastian Luque <spluque at gmail.com> wrote:
> > Thanks a lot Martin and Gabor!
> >
> >
> > On Thu, 23 Jun 2005 08:20:44 -0400,
> > Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> >
> > [...]
> >
> > > Also if you are referring to the chron package then
> > > the names of the chron classes are 'dates' and 'times' -- not 'chron'.
> >
> > However, when the object has both dates and times, then the class becomes
> > 'chron', inheriting both 'dates' and 'times':
> >
> > R> class(x)
> > [1] "chron" "dates" "times"
>
>
> Did you try the example I posted? Its self contained and reproducible and
> it inherits from both "dates" and "times" yet there is no "chron" in the class
> vector, at least in that case.
>
Just to be clear, the point is that you need to be sure that your chron
objects really have class "chron" since one often speaks of chron
objects that are of class dates or times but not chron.
This may or may not be a problem for you but I thought it worthwhile pointing
out just in case.
More information about the R-help
mailing list