Skip to content

This repo will provide code for pulling Apple Watch health data from Apple's Healthkit.

Notifications You must be signed in to change notification settings

benjaminwnelson/Apple-Watch-Health-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Apple-Watch-Health-Data

This repo will provide code for pulling Apple Watch Health data from Apple's Healthkit using the "AppleHealthAnalysis" rpackage by deepankardatta and converting the downloaded json file to a dataframe.

Download "AppleHealthAnalysis" R Package

library(devtools)

intall_github("deepankardatta/AppleHealthAnalysis")

How to Download Apple Health Data and Import to R

1) Open Apple Health and click the icon in the upper right corner

screen shot 2018-02-24 at 1 23 00 pm

2) Export the Data

screen shot 2018-02-24 at 1 24 04 pm

3) Email the Data

screen shot 2018-02-24 at 1 26 30 pm

screen shot 2018-02-24 at 1 27 36 pm

4) Open R

library(AppleHealthAnalysis)

health.data<- ah_import_xml("export.xml")

Future Edits

I plan to edit this code to allow for interday summary of all variables as well as intraday variables within 10 minute bins.

Resources

  1. https://github.com/deepankardatta/AppleHealthAnalysis
  2. https://gist.github.com/ryanpraski/ba9baee2583cfb1af88ca4ec62311a3d#file-apple_health_load_analysis_r-r

About

This repo will provide code for pulling Apple Watch health data from Apple's Healthkit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published