Package 'epxToR'

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

Help Index


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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

References

—-

Examples

# -----------