Displaying 1 result from an estimated 1 matches for "min5break".
Did you mean:
linebreak
2011 Sep 01
3
Oh apply functions, how you confuse me
...y though and its all cause I dont fully
understand the apply family of functions. Consider the following:
#Create data
Df..<-rbind(data.frame(Id=1:1008,Dir=rep(c("NB","NB","SB","SB"),252),Mph=runif(1008,0,65),
Volume=runif(1008,0,19),Hour=rep(00,1008),Min5Break=rep(1:12,84),Day=rep(1,1008)),
data.frame(Id=2009:2016,Dir=rep(c("NB","NB","SB","SB"),252),Mph=runif(1008,0,65),
Volume=runif(1008,0,19),Hour=rep(01,1008),Min5Break=rep(1:12,84),Day=rep(2,1008)))
#Example calc
Results_<-list()
#Sum Volume by 5 minute bre...