[R] Loop to find dates whithin dates

Daniel Nordlund
2011-02-07T17:04:37Z

?subset

Daniel Nordlund
Bothell, WA USA

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at
r-project.org]
> On Behalf Of patraopedro
> Sent: Monday, February 07, 2011 6:11 AM
> To: r-help at 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 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.