bulk_dl | R Documentation |
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.
bulk_dl(data_set, output_dir = NULL, file_name = NULL, size_warning = TRUE)
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) |
Returns a downloaded csv file of the data set to the specified output directory.
## Not run:
bulk_dl("femaregions") # download the file
## End(Not run)
## Not run:
file.remove("FemaRegions.csv") # clean up directory after file downloads
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.