health_to_xml: Convert health data to XML

Description Usage Arguments Value Examples

View source: R/health_to_xml.R

Description

This function aims to convert health data from data a frmae to XML format.

Usage

1
health_to_xml(health_data, file = NULL)

Arguments

health_data

a data frame of health data, i.e. events occurred each day in the history known.

file

[chr] (default is NULL) if provided as "path/to/xml/output/xml" the function write the XML in this file (note: folder must be exists).

Value

an (invisible) XML document

Examples

1
2
3
4
5
6
7
8
9
library(imthcm)
## Not run: 
  data(test_health)
  xml_health <- 'test_health.xml'
  health_to_xml(test_health, file = xml_health)
  events_history <- xml_to_health(file = xml_health)
  identical(events_history, test_health)

## End(Not run)

UBESP-DCTV/imthcm documentation built on Dec. 2, 2019, 9:26 a.m.