Skip to content
Prev 276657 / 398506 Next

Selecting 3 different hours in a day

No data sample was provided, so with a verbal description of the problem comes a verbal answer.

I would use expand.grid to build a set of all desired date/time combinations, then use the merge function to select rows in your actual data.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
jck13 <jennakeane at hotmail.com> wrote: