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.
library(devtools)
intall_github("deepankardatta/AppleHealthAnalysis")
library(AppleHealthAnalysis)
health.data<- ah_import_xml("export.xml")
I plan to edit this code to allow for interday summary of all variables as well as intraday variables within 10 minute bins.