For those whose search lands on this post, here is the solution I found that
worked
well.80.2<-data.frame(well.80.2,week=floor(as.numeric(difftime(strptime(well.80.2$date,"%m/%d/%Y
%H:%M",tz=""),strptime(well.80.2$date[1],"%m/%d/%Y
%H:%M",tz=""),tz="",units="hours"))/168))
--
View this message
On May 13, 2010, at 11:25 PM, emorway wrote:
Forum,
I've got hourly data for roughly 5 months of time that I want to
subset into
successive weeks. The first two elements of the dataset are
well.80.2$date[1]
[1] 6/12/2000 2:00
9256 Levels: 10/1/2001...
well.80.2$date[2]
[1] 6/12/2000
Forum,
I've got hourly data for roughly 5 months of time that I want to subset into
successive weeks. The first two elements of the dataset are
well.80.2$date[1]
>[1] 6/12/2000 2:00
>9256 Levels: 10/1/2001...
well.80.2$date[2]
>[1] 6/12/2000 3:00
>9256 Levels: 10/1/2001
and so on until m
3 matches
Mail list logo