Guest User

Untitled

a guest
Jan 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. DF$date <- as.Date(DF$date,format="%Y-%m-%d")
  2. Output <- aggregate(DF[,-1],
  3. by=list(Month=format(DF$date,"%y-%m")),
  4. FUN=max)
Add Comment
Please, Sign In to add comment