Skip to content

Instantly share code, notes, and snippets.

Created April 29, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c8c1733be08dc54bad5598a96e57fb8a to your computer and use it in GitHub Desktop.
Save anonymous/c8c1733be08dc54bad5598a96e57fb8a to your computer and use it in GitHub Desktop.
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