[R] How to get a subset with a date such as Date=11/03/2013 HE=02*?

David Winsemius dwinsemius at comcast.net
Tue Mar 25 07:55:06 CET 2014


On Mar 24, 2014, at 3:35 PM, jcrosbie wrote:

> I'm having a problem working with daylight savings dates in R.
> 
> I'm downloading data in two formats. 
> 
> Format One Col 1: a date such as "11/03/2013" col 2: Hour ending = 02*
> Col1<-c("11/02/2008*", "11/02/2008", "11/02/2008", "11/02/2008")
> Col1<-c("02*", "02", "03", "04")
> 
> Another data set is something like this: "11/03/2013 02*"
> Col1<-c("11/02/2008 02*", "11/02/2008 02", "11/02/2008 03", "11/02/2008 04")
> 
> These data frames are very big and over multiple years with multiple values
> for each hour ending. 
> 
> I'm trying to build subsets, filter, merge tables, lookup values with dates
> like these. How do I go about working with the "02*"?
> 

If you are adding those asterisks to that example (as I suspect)  then you are just creating problems in understanding what is really in your data. Instead post output from dput(dat) for a section of an object named 'dat'.


> View this message in context: http://r.789695.n4.nabble.com/How-to-get-a-subset-with-a-date-such-as-Date-11-03-2013-HE-02-tp4687488.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.

-- 
David Winsemius
Alameda, CA, USA




More information about the R-help mailing list