search for: s79

Displaying 2 results from an estimated 2 matches for "s79".

Did you mean: 79
2017 Nov 14
0
Aggregating Data
R-Help Please disregard as I figure something out, unless there is a more elegant way ... myData.sum <- aggregate(x = myData[c("s72","s79","s82","s83","s116","s119")], FUN = sum, by = list(Group.date = myData$shortdate)) > head(myData.sum) Group.date s72 s79 s82 s83 s116 s119 1 2016/10/03 75 74 36 33 96 10 2 2016/10/04...
2017 Nov 14
0
Aggregating Data
R-Help I created a "shortdate" for the purpose of aggregating each var (S72 .S119) by daily sum , but not sure how to handle using a POSIXlt object. > myData$shortdate <- strftime(myData$time, format="%Y/%m/%d") > head(myData) time s72 s79 s82 s83 s116 s119 shortdate 1 2016-10-03 00:00:00 0 0 1 0 0 0 2016/10/03 2 2016-10-03 01:00:00 0 0 0 0 0 0 2016/10/03 3 2016-10-03 02:00:00 0 0 0 0 24 0 2016/10/03 4 2016-10-03 03:00:00 1 0 0 0 0 0 2016/10/03 5...