Skip to content

Instantly share code, notes, and snippets.

@akshat3096
Last active May 3, 2019 07:42
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 akshat3096/b58553712179bc539f7da148c4140992 to your computer and use it in GitHub Desktop.
Save akshat3096/b58553712179bc539f7da148c4140992 to your computer and use it in GitHub Desktop.
heart_rate <- df %>%
filter(type == 'HKQuantityTypeIdentifierHeartRate') %>%
group_by(date,year,month) %>%
summarize(heart_rate=mean(value))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment