Get access to example extracts.
ipums_example(path = NULL)
path | 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] "C:/Users/derek/AppData/Local/Temp/Rtmp82uown/temp_libpath1470b979ee/ipumsr/extdata/cps_00006.xml"