Description Usage Arguments Value Note Author(s) Examples
Selects requested Apple Health information from the extracted data frame
1 | ah_data_select(health_data, type_filter = NULL, year_filter = NULL)
|
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 |
type_data A data frame containing the selected type elements
Common types to pass to type_filter include:
BodyMassIndex
BodyMass
Height
HeartRate
DistanceWalkingRunning
StepCount
Deepankar Datta <deepankardatta@nhs.net>
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.