[R] Intersect, Union of date/time ranges
David Winsemius
dwinsemius at comcast.net
Thu Mar 18 05:38:10 CET 2010
On Mar 17, 2010, at 10:52 PM, Nathan S. Watson-Haigh wrote:
> I have 2 sets of data which defines the start and end of date/time
> periods. I want to be able to obtain the following:
>
> 1) The intersect of those 2 sets of date/time ranges i.e. return
> start/end date/time ranges where both sets overlap
?intersect
?max
?min
> 2) The union of those 2 sets of date/time ranges i.e. return the
> start/end date/time ranges which are in 1 or both sets
?union
>
> Is there anything that is currently able to do this? If not, I'll
> start to code something.
Are you suggesting you have such data and have tried these functions
with undesired effects?
>
> Kind regards,
> Nathan
>
> --
> --------------------------------------------------------
> Dr. Nathan S. Watson-Haigh
> OCE Post Doctoral Fellow
> CSIRO Livestock Industries
> University Drive
> Townsville, QLD 4810
> Australia
>
> Tel: +61 (0)7 4753 8548
> Fax: +61 (0)7 4753 8600
> Web: http://www.csiro.au/people/Nathan.Watson-Haigh.html
>
> ______________________________________________
> 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.
More information about the R-help
mailing list