Created
April 29, 2017 20:54
-
-
Save anonymous/c8c1733be08dc54bad5598a96e57fb8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dfweek = rep(0, floor(length(dat)/7)) | |
dat = as.numeric(dfdays[,2]) | |
for(j in 1:floor(length(dat)/7)) | |
{ | |
wk = dat[(7*(j-1)):(7*j)] | |
dfweek[j] = max(wk); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment