Skip to content

Instantly share code, notes, and snippets.

@akshat3096
Last active May 3, 2019 07:42
Show Gist options
  • Select an option

  • Save akshat3096/b58553712179bc539f7da148c4140992 to your computer and use it in GitHub Desktop.

Select an option

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