read.epx: Import an Epidata xml file (.epx)

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/read-epx.R

Description

Import an Epidata xml file (.epx)

Usage

1
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

1
# -----------

Example output

Loading required package: XML
Loading required package: httr

Attaching package: 'epxToR'

The following object is masked from 'package:base':

    as.data.frame

epxToR documentation built on July 2, 2020, 3:12 a.m.