?subset Daniel Nordlund Bothell, WA USA
> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of patraopedro > Sent: Monday, February 07, 2011 6:11 AM > To: r-help@r-project.org > Subject: [R] Loop to find dates whithin dates > > > 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 > > -- > View this message in context: http://r.789695.n4.nabble.com/Loop-to-find- > dates-whithin-dates-tp3264180p3264180.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.