ah_data_select: "ah_data_select" - Selects requested Apple Health information...

Description Usage Arguments Value Note Author(s) Examples

Description

Selects requested Apple Health information from the extracted data frame

Usage

1
ah_data_select(health_data, type_filter = NULL, year_filter = NULL)

Arguments

health_data

A data frame containing extracted health data, in a format generated by the ah_import_xml.r function

type_filter

Parameter to select the element "type" of health data to extract. Named so as the XML file groups elements by "type". See your data frame to see what types are available.

year_filter

Optional parameter to select a specific year of data

Value

type_data A data frame containing the selected type elements

Note

Common types to pass to type_filter include:

BodyMassIndex

BodyMass

Height

HeartRate

DistanceWalkingRunning

StepCount

Author(s)

Deepankar Datta <deepankardatta@nhs.net>

Examples

1
2
3
4
# health_data <- ah_import_xml("export.xml")
# type_filter <- "BodyMassIndex"
# ah_data_select( health_data , type_filter )
# bmi_data <-ah_data_select( health_data , type_filter )

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