Learn R Programming

ipumsr (version 0.8.2)

ipums_example: Get path to IPUMS example datasets

Description

Construct file path to example extracts included with ipumsr. These data are used in package examples and can be used to experiment with ipumsr functionality.

Usage

ipums_example(path = NULL)

Value

The path to a specific example file or a vector of all available files.

Arguments

path

Name of file. If NULL, all available example files will be listed.

Examples

Run this code
# List all available example files
ipums_example()

# Get path to a specific example file
file <- ipums_example("cps_00157.xml")

read_ipums_micro(file)

Run the code above in your browser using DataLab