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"             "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/RtmpsPzDeR/temp_libpath10dc151157c5/ipumsr/extdata/cps_00006.xml"