<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/r-packages-for-data-access/"></div></div><div><a data-url="https://www.r-bloggers.com/r-packages-for-data-access/" data-counturl="https://www.r-bloggers.com/r-packages-for-data-access/" data-count="horizontal" data-text="R Packages for Data Access" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2016/08/r-packages-data-access.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>by Joseph Rickert</p>
<p>Data Science is all about getting access to interesting data, and it is really nice when some kind soul not only points out an interesting data set but also makes it easy for you to access it. Below is a list of 17 R packages that appeared on CRAN between May 1st and August 8th that, in one way or another, provide access to publicly available data. </p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/bigQueryR/">bigQueryR</a>: Provides an interface to Google's <a target="_blank" href="https://cloud.google.com/bigquery/">BigQuery</a>. The <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/bigQueryR/vignettes/bigQueryR.html">vignette</a> shows how to use it.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/blscrapeR/">blscrapeR</a>: Provides an API wrapper for Bureau of Labor Statistics data sets. There is a vignette showing how to access <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/blscrapeR/vignettes/Inflation_and_Prices.html">inflation and price</a> data, one for accessing <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/blscrapeR/vignettes/Pay_and_Benefits.html">Wages and Benefits data</a>, and one for <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/blscrapeR/vignettes/Mapping_BLS_Data.html">mapping BLS data</a>. </p>
<p>  <a target="_blank" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b8d20ea30a970c-pi"><img title="Bls1" alt="Bls1" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b8d20ea30a970c-800wi" border="0"></a></p>
<p></p>
<p><a target="_blank" href="https://mran.microsoft.com/package/cdlTools/">cdlTools</a>: Provides functions to download <a target="_blank" href="https://www.nass.usda.gov/">USDA National Agricultural Statistics Service</a> (NASS) cropscape data for a specified state.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/dataone/">dataone</a>: The dataone R package enables R scripts to search, download and upload science data and metadata from/to the <a target="_blank" href="https://www.dataone.org/current-member-nodes">DataONE Federation</a>. The website describes DataOne as &quot;a community driven project providing access to data across multiple member repositories, supporting enhanced search and discovery of Earth and environmental data&quot;. The package comes with several vignettes including this <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/dataone/vignettes/dataone-overview.html">overview</a>.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/dataRetrieval/">dataRetrieval</a>: Package to retrieve USGS and EPA hydrologic and water quality data, officially supported by USGS. The <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/dataRetrieval/vignettes/dataRetrieval.pdf">vignette</a> gives several examples of downloading interesting data sets.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/eechidna/">eechidna</a>: Provides the data from the 2013 Australian Federal Election and tools to analyze it. There are several nicely done vignettes. The following plot which shows election results by polling place comes from the vignette on <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/plotting-polling-stns.html">plotting polling stations</a>.</p>
<p><a target="_blank" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b7c8853269970b-pi"><img title="Eechidna2" alt="Eechidna2" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b7c8853269970b-800wi" border="0"></a></p>
<p>There are also vignettes on <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/exploring-census-data.html">census</a> and <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/exploring-election-data.html">election</a> data, <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/getting-ozShapefiles.html">shapefiles</a> and mapping <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/plotting-electorates.html">Australia's Electorates</a>.</p>
<p><a target="_blank" href="https://mran.microsoft.com/package/GetHFData/">getHFdata</a>: Provides functions to downloads and aggregate high frequency trading data for Brazilian instruments directly from the <a target="_blank">Bovespa ftp site</a>. There is a <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/GetHFData/vignettes/ghfd-vignette.html">vignette</a> to get you started. The following plot showing unemployment data by state comes from the vignette on <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/eechidna/vignettes/exploring-census-data.html">Census data</a>.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/googleAnalyticsR/">googleAnalyticsR</a>: Provides an interface to the <a target="_blank" href="http://code.markedmondson.me/googleAnalyticsR/">Google Analytics</a> Reporting API. There is a <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/googleAnalyticsR/vignettes/googleAnalyticsR.html">vignette</a>.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/googleway">googleway</a>: Provides functions to retrieve data from 6 Google Maps APIs. The <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/googleway/vignettes/googleway-vignette.html">vignette</a> shows how.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/gutenbergr/">gutenberg</a>: Search and download public domain works in the <a target="_blank" href="https://www.gutenberg.org/">Project Gutenberg</a> collection. The <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/gutenbergr/vignettes/intro.html">vignette</a> shows you how to search and download public domain texts.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/ie2miscdata/">ie2miscdata</a>: Contains a collection of <a target="_blank" href="http://waterdata.usgs.gov/nwis">USGS</a> environmental and water resources data sets. There is a <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/ie2miscdata/vignettes/US-Engineering-Weather-Map.html">vignette</a> showing how to create plots from the data. (See also: <a target="_blank" href="https://mran.revolutionanalytics.com/package/dataRetrieval/">dataRetrieval</a>.)</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/macleish/">macleish</a>: Provides functions to data from the Ada &amp; Archibald MacLeish field station in Whately, MA. The<a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/macleish/vignettes/macleish.html">v ignette</a> shows how to obtain weather data.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/muckrock/">muckrock</a>: Contains public domain information on requests made by <a target="_blank" href="https://www.muckrock.com/">muckrock</a> through the US Freedom of Information Act.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/nasadata/">nasadata</a>: Provides an interface to NASA's <a target="_blank" href="https://api.nasa.gov/api.html">Earth Imagery and Assets</a> API and <a target="_blank" href="http://eonet.sci.gsfc.nasa.gov/">Earth Observatory and Natural Event Tracker</a>.</p>
<p><a target="_blank" href="http://atlas.media.mit.edu/en/">oec</a>: Provides an interface to the <a target="_blank" href="http://atlas.media.mit.edu/en/">Observatory for Economic Complexity</a>.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/osi/">osi</a>: Provides a connector to the <a target="_blank" href="https://opensource.org/">Open Source Initiative</a> API that provides machine –readable data about open source software licenses.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/pewdata/">pewdata</a>: Provides for reproducible, programmatic retrieval of survey data sets from the <a target="_blank" href="http://www.pewresearch.org/">Pew Research Center</a>. The <a target="_blank" href="https://mran.revolutionanalytics.com/web/packages/pewdata/vignettes/pewdata-vignette.html">vignette</a> shows how to setup and use the package. Look <a target="_blank" href="http://www.pewinternet.org/2015/09/10/what-the-public-knows-and-does-not-know-about-science/">here</a> for an interesting poll about what Americans know about science.</p>
<p><a target="_blank" href="https://mran.revolutionanalytics.com/package/TCGAretriever/">TCGAretrieve</a>r: Provides an interface to data sets from the T<a target="_blank" href="http://cancergenome.nih.gov/">he Cancer Genome Atlas</a> (TCGA) via the <a target="_blank" href="http://www.cbioportal.org/web_api.jsp">Cancer Genomic Data Server web service</a>. </p>
<p>For more packages that provide APIs to data sets have a look at the CRAN <a target="_blank" href="https://cran.r-project.org/web/views/WebTechnologies.html">Task View on Web Technologies and Services</a>. For a list of interesting data sets out there in the wild see the MRAN <a target="_blank" href="https://mran.revolutionanalytics.com/documents/data/">Data Sources page</a>.</p>
<p>[<strong>Update</strong>: added the dataRetrieval package, at the <a target="_blank" href="https://twitter.com/DeCiccoDonk/status/763773522640449536">suggestion</a> of Laura DeCicco.<strong>]</strong></p>
<p><em>Editor's note: This is Joe's last post to Revolutions as a member of the Microsoft team: he is heading on for further adventures in the world of R. We want to thank Joe for his many contributions to the blog over the past 6 years, and please join us in wishing him well!</em></p>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/r-packages-for-data-access/"></div></div><div><a data-url="https://www.r-bloggers.com/r-packages-for-data-access/" data-counturl="https://www.r-bloggers.com/r-packages-for-data-access/" data-count="vertical" data-text="R Packages for Data Access" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2016/08/r-packages-data-access.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/SNWo-u7P3nU"></a></div>