Last data update: 2014.03.03

R: Reads microdata using user provided metadata files
test.metadataR Documentation

Reads microdata using user provided metadata files

Description

This function reads a microdata file based on metadata provided by the user. It is particularly intended for the user to test the metadata before submitting it for inclusion in the package.

Usage

test.metadata(file,md.1, md.2, md.3, encoding = "UTF-8" )

Arguments

file

The name of the microdata file

md.1

First metadata file

md.2

Second metadata file

md.3

Third metadata file

encoding

Either 'latin1' or 'UTF-8', the encoding used in the metadata files

Details

The function reads the microdata file using three standardized metadata files. For some microdata files, the package provides the required metadata files; however, users may be willing to load other microdata files using the package infrastructure or test metadata files before providing them to the maintainer for inclusion in it.

Value

A data.set as described in package memisc.

Author(s)

Carlos J. Gil Bellosta

Examples

# This command reads a few lines sampled from the EPA for the 1Q 2011
# sample.epa.data <- epa2005(system.file( "extdata", "sampleEPA0111.txt", package = "MicroDataEs") )

Results