View source: R/platform_utils.R
extract_data_from_zip | R Documentation |
This function downloads a ZIP file, extracts only the data file (.dta or .sav), and cleans up the ZIP file and any non-data files (PDFs, etc.).
extract_data_from_zip(url, destfile, expected_format, quiet = FALSE)
url |
URL to download the ZIP file from |
destfile |
Final destination path for the extracted data file |
expected_format |
Expected format of the data file ("spss" or "stata") |
quiet |
Logical indicating whether to show progress |
Path to the extracted data file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.