ah_data_summarise: "ah_data_summarise" - Summarises requested Apple Health...

Description Usage Arguments Value Note Author(s) Examples

Description

Summarises requested Apple Health information from the extracted data frame to actually be useful

Usage

1
ah_data_summarise(health_data, type_filter = NULL, summary_period = "hour")

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.

summary_period

A period of time to summarise. Default is hour

Value

summary_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
# PUT EXAMPLES HERE

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