cost_to_xml: Convert cost data to XML

Description Usage Arguments Value Examples

View source: R/cost_to_xml.R

Description

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

Usage

1
cost_to_xml(cost_data, file = NULL)

Arguments

cost_data

a data frame of cost data, i.e. individual cost per event considered.

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
## Not run: 
  library(imthcm)
  data(meps_costs)
  xml_cost <- 'test_cost.xml'
  cost_to_xml(meps_costs, file = xml_cost)
  converted_costs <- xml_to_cost(file = xml_cost)
  identical(converted_costs, meps_costs)

## End(Not run)

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