Hi Patrao, you can 'merge' both datasets using the (extracted) day as indicator, see ?merge. Then use subset. hth.
Am 07.02.2011 15:10, schrieb patraopedro: > > Hello to all, > > I have two dataframes, the first with two columns sunrise and sunset (for 10 > years). Each of these columns is formatted for date time (ex: 01-Jan-2010 > 15:37:00) > > In the second data frame I have GPS information and also a date time column > (same format ). > > What I would like to do is a subset of all the rows from the second > dataframe that occurred in day time only so between sunrise and sunset. > There are thousands of lines from multiple GPS so date time might be > repeated in some rows. > > Any ideas how to accomplish this? > > Thanks in advance > > Patrao > -- Eik Vettorazzi Institut für Medizinische Biometrie und Epidemiologie Universitätsklinikum Hamburg-Eppendorf Martinistr. 52 20246 Hamburg T ++49/40/7410-58243 F ++49/40/7410-57790 ______________________________________________ [email protected] 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.

