Get access to example extracts.
ipums_example(path = NULL)
Name of file. If `NULL`, the example files will be listed.
The filepath to an example file, or if path is empty, a vector of all available files.
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" "mtus_00002.xml"
#> [9] "nhgis0008_csv.zip" "nhgis0008_shape_small.zip"
ipums_example("cps_00006.xml") # Gives filepath for a cps DDI
#> [1] "/private/var/folders/bp/l9qm36b10bq0jfwtkvty8q5h0000gq/T/RtmpdoZrUc/temp_libpath173db14be2bbb/ipumsr/extdata/cps_00006.xml"