read_zip | R Documentation |
This function downloads and locally stores a zipped file from a url and then returns a list of the paths to each file
read_zip(url)
url |
A url to a zipped file |
## Not run:
# Download and view fuel economy data for all U.S. vehicles
# from 1980 to present (https://www.fueleconomy.gov/feg/download.shtml):
url <- 'https://www.fueleconomy.gov/feg/epadata/vehicles.csv.zip'
filePaths = read_zip(url)
print(filePaths)
# View first data file:
data <- read.csv(filePaths[1], header = TRUE)
head(data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.