Description Usage Arguments Value Author(s) References Examples
Code adapted from http://stackoverflow.com/questions/3053833/using-r-to-download-zipped-data-file-extract-and-import-data
1 | GetUnzip(ZipName, FileName)
|
ZipName |
name of zipped archive |
FileName |
FileName: name of file in zipped archive |
A data frame (or whatever else read.csv wants to give)
Bob O'Hara
http://stackoverflow.com/questions/3053833/using-r-to-download-zipped-data-file-extract-and-import-data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Download woodpecker data from BBS
Rep <- "ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/"
dat=GetUnzip(ZipName=paste0(Rep, "States/Florida.zip"),
FileName="Florida.csv")
## Not run:
## Download from a local repository
## Use your own LocalRepos
LocalRepos <- "~/Dropbox/"
dat=GetUnzip(ZipName=paste0(LocalRepos,
"BBS/DataFiles/Species/TrogWoodp.zip"),
FileName="TrogWoodp.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.