Type: | Package |
Title: | Import 'Epidata' XML Files '.epx' |
Version: | 0.4-1 |
Date: | 2020-05-20 |
Description: | Import data from 'Epidata' XML files '.epx' and convert it to R data structures. |
License: | GPL-3 |
Encoding: | UTF-8 |
LazyData: | true |
Depends: | XML,httr |
NeedsCompilation: | no |
Packaged: | 2020-05-21 08:16:45 UTC; kdo |
Author: | Jean Pierre Decorps [aut, cre], David Whiting [aut], Bruno Granouillac [ctb], Laura March [ctb] |
Maintainer: | Jean Pierre Decorps <jean.pierre.decorps@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2020-05-21 12:50:09 UTC |
Retrieve study informations from the file.
Description
S3 method. Retrieve study informations from a loaded epx file, and return a data.frame containing these informations.
Usage
abstract(x)
Arguments
x |
Object - an epx object created by read.epx |
Details
—-
Value
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 |
- |
Author(s)
Jean Pierre Decorps <jean.pierre.decorps@gmail.com>
Examples
# -----------
Get the data.frame from an epx object.
Description
S3 method. Get the data.frame of an epx object created by read.epx
Usage
as.data.frame(x)
Arguments
x |
Object - an epx object created by read.epx |
Details
—-
Value
—-
Note
—-
Author(s)
Jean Pierre Decorps <jean.pierre.decorps@gmail.com>
References
—-
See Also
—-
Examples
# -----------
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
# -----------