Title: | Import 'Epidata' XML Files '.epx' |
---|---|
Description: | Import data from 'Epidata' XML files '.epx' and convert it to R data structures. |
Authors: | Jean Pierre Decorps [aut, cre], David Whiting [aut], Bruno Granouillac [ctb], Laura March [ctb] |
Maintainer: | Jean Pierre Decorps <[email protected]> |
License: | GPL-3 |
Version: | 0.4-1 |
Built: | 2024-11-07 06:18:23 UTC |
Source: | CRAN |
S3 method. Retrieve study informations from a loaded epx file, and return a data.frame containing these informations.
abstract(x)
abstract(x)
x |
Object - an epx object created by read.epx |
—-
A data.frame with some study informations:
File Name |
- File name containing this study |
Title |
- Title of the study |
Author |
- Author of the study |
Agency |
- Name of the agency conducting the study |
Created |
- Date Time of file creation |
Identifier |
- An identifier... |
Modified |
- Date Time of the last modification of this file |
Note |
- |
Version |
- |
Jean Pierre Decorps <[email protected]>
# -----------
# -----------
S3 method. Get the data.frame of an epx object created by read.epx
as.data.frame(x)
as.data.frame(x)
x |
Object - an epx object created by read.epx |
—-
—-
—-
Jean Pierre Decorps <[email protected]>
—-
—-
# -----------
# -----------
Import an Epidata xml file (.epx)
read.epx(x, use.epidata.labels = TRUE, set.missing.na = TRUE)
read.epx(x, use.epidata.labels = TRUE, set.missing.na = TRUE)
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 |
This function read an Epidata file containing new xml format data.
An "epx" object
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.
Jean Pierre Decorps <[email protected]>
—-
# -----------
# -----------