Other code: read zipped url
fread.zip.url(url, filename = NULL, FUN = fread, ...)
url | see vignette for a list of the cut |
---|---|
filename | for multiple files in the archive |
FUN | default to fread from data.table but you could use anything |
... | arguments passed to the function call (typically fread) |
data.table of the remote file
This code is directly copied from https://stackoverflow.com/a/24586478
# NOT RUN { dt <- fread.zip.url(http://data.bls.gov/cew/data/files/2000/csv/2000_qtrly_singlefile.zip) # }