ah_import_xml: "ah_import_xml": Import Apple Health data from the exported...

Description Usage Arguments Value Author(s) References Examples

Description

Imports Apple Health data from its exported XML file into R. Cleans up the data and type identifiers.

Usage

1
ah_import_xml(import_filename)

Arguments

import_filename

The name of a XML file containing exported Apple Health data, written in inverted commas

Value

health_data A data frame containing the extracted health data

Author(s)

Deepankar Datta <deepankardatta@nhs.net>

References

http://www.ryanpraski.com/apple-health-data-how-to-export-analyze-visualize-guide/#4

https://gist.github.com/ryanpraski/ba9baee2583cfb1af88ca4ec62311a3d

http://rpubs.com/Ranthony__/visualizing-iphone-health-app-data-in-R

http://www.tdda.info/in-defence-of-xml-exporting-and-analysing-apple-health-data

Examples

1
2
3
4
# Loads the data
# ah_import_xml("export.xml")
# Loads the data, and moves it into a data frame
# health_data <- ah_import_xml("export.xml")

deepankardatta/AppleHealthAnalysis documentation built on May 28, 2019, 7:53 p.m.