For large data requests, it can sometimes be more practical (and quicker) to download and work with the entire data set. This function provides an easy way to download any of FEMA's data sets in its entirety and save it locally as a csv file.
Arguments
- data_set
A character string indicating the name of the data set to download
- output_dir
An optional character string indicating the directory (defaults to working directory)
- file_name
An optional character string indicating the file name (defaults to data set name with time stamp)
- size_warning
A logical indicating whether to issue a warning before proceeding with downloading a large file (default is TRUE)
Examples
if (FALSE) { # \dontrun{
bulk_dl("femaregions") # download the file
} # }
if (FALSE) { # \dontrun{
file.remove("FemaRegions.csv") # clean up directory after file downloads
} # }