Get access to example extracts.

ipums_example(path = NULL)

Arguments

path

Name of file. If `NULL`, the example files will be listed.

Value

The filepath to an example file, or if path is empty, a vector of all available files.

Examples

ipums_example() # Lists all available examples
#> [1] "cps_00006.csv.gz" "cps_00006.dat.gz" #> [3] "cps_00006.xml" "cps_00010.dat.gz" #> [5] "cps_00010.xml" "cps_00015.dat.gz" #> [7] "cps_00015.xml" "nhgis0008_csv.zip" #> [9] "nhgis0008_shape_small.zip"
ipums_example("cps_00006.xml") # Gives filepath for a cps DDI
#> [1] "C:/Users/burkx031/ipumsr/inst/extdata/cps_00006.xml"