my_extract <- define_extract_usa("Example", "us2013a", "YEAR")
if (FALSE) {
submitted_extract <- submit_extract(my_extract)
# Download extract by supplying an ipums_extract object:
path_to_ddi_file <- download_extract(submitted_extract)
# By supplying the data collection and extract number, as a string:
path_to_ddi_file <- download_extract("usa:1")
# Note that there is no space before or after the colon, and no zero-padding
# of the extract number.
# By supplying the data collection and extract number, as a vector:
path_to_ddi_file <- download_extract(c("usa", "1"))
}
Run the code above in your browser using DataLab