read.epx {epxToR} | R Documentation |
Import an Epidata xml file (.epx)
Description
Import an Epidata xml file (.epx)
Usage
read.epx(x, use.epidata.labels = TRUE, set.missing.na = TRUE)
Arguments
x |
char - Filename |
use.epidata.labels |
Boolean - replace value of a variable by an internal label. Default is TRUE |
set.missing.na |
Boolean - replace missing by NA. Default is TRUE |
Details
This function read an Epidata file containing new xml format data.
Value
An "epx" object
Note
This work is derived from the work of David Whiting.
Be careful, don't include ',' or ';' into text field, these characters can be used as separators.
Epidata types handled : ftString, ftInteger, ftFloat, ftDMYDate
WARNING: with R 3.4.0 this function generates many warning. That is tied to the fact than XML package has not still be updated.
Author(s)
Jean Pierre Decorps <jean.pierre.decorps@gmail.com>
References
—-
Examples
# -----------
[Package epxToR version 0.4-1 Index]