[R] Duplicated date values aren't duplicates
Tim Clark
mudiver1200 at yahoo.com
Fri Jul 24 20:54:31 CEST 2009
Don and Jim,
Thanks! I got it! Duplicated is only returning one of the two duplicated dates (the second date). It all makes sense now!
Tim
Tim Clark
Department of Zoology
University of Hawaii
--- On Fri, 7/24/09, Don MacQueen <macq at llnl.gov> wrote:
> From: Don MacQueen <macq at llnl.gov>
> Subject: Re: [R] Duplicated date values aren't duplicates
> To: "Tim Clark" <mudiver1200 at yahoo.com>, r-help at r-project.org
> Date: Friday, July 24, 2009, 4:00 AM
> Look at results of
>
> table( mydata$DateTime )
>
> and I think you will see that some are duplicated.
> Specifically, the
> two in your dupes object.
>
> -Don
>
> At 5:50 PM -0700 7/23/09, Tim Clark wrote:
> >Dear list,
> >
> >I just had a function (as.ltraj in Adehabitat) give me
> the following error:
> >
> >"Error in as.ltraj(xy, id, date = da) : non unique
> dates for a given burst"
> >
> >I checked my dates and got the following:
> >
> >
> > dupes<-mydata$DateTime[duplicated(mydata$DateTime)]
> >> dupes
> >[1] (07/30/02 00:00:00) (08/06/03 17:45:00)
> >
> >Is there a reason different dates would come up as
> duplicate values?
> >I would prefer not to have to delete them if I don't
> have to. Any
> >suggestions on how to get R to realize they are
> different?
> >
> >Thanks,
> >
> >Tim
> >
> >
> >
> >Tim Clark
> >Department of Zoology
> >University of Hawaii
> >
> >______________________________________________
> >R-help at r-project.org
> 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.
>
>
> --
> --------------------------------------
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> 925-423-1062
> --------------------------------------
>
More information about the R-help
mailing list