<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/ergastr-r-wrapper-for-ergast-f1-results-data-api/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://blog.ouseful.info/2017/07/14/ergastr-r-wrapper-for-ergast-f1-results-data-api/"> Rstats – OUseful.Info, the blog…</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>By the by, I’ve posted a first attempt at an R package – <a rel="nofollow" href="https://github.com/psychemedia/ergastR/" target="_blank"><code>ergastR</code></a> to wrap the <a rel="nofollow" href="http://ergast.com/mrd/" target="_blank"><em>ergast</em> developer API</a>, which is where I get chunks of data from for my <a rel="nofollow" href="http://www.f1datajunkie.com/" target="_blank">f1datajunkie</a> tinkerings.</p>
<p>You can find it on Github: <a rel="nofollow" href="https://github.com/psychemedia/ergastR/" target="_blank"><code>psychemedia/ergastR</code></a>.</p>
<p>The function names are the ones used in the <a rel="nofollow" href="https://leanpub.com/wranglingf1datawithr" target="_blank">Wrangling F1 Data With R</a> book.</p>
<p>The R package needs a bit of tidying up and also needs work on the following: cacheing, so that we don’t keep hitting the <em>ergast</em> API unnecessarily; paged results handling (I fudge this a bit at the moment by explicitly setting a large results limit); and dual handling of <em>ergast</em> API versus downloaed <em>ergast</em> database requests (if a database connection string is passed, use that rather than make a call to the ergast API). But it’s a start… Feel free to raise issues via the repo:-)</p>
<p>In related news, <a rel="nofollow" href="https://twitter.com/nackjicholsonn/" target="_blank">Will Vaughan</a> tipped me off to a Python package he’s started putting together to wrap the <em>ergast</em> API: <a rel="nofollow" href="https://github.com/nackjicholson/ergast-python" target="_blank"><i>ergast-python</i></a>. He’s also making a start on some <i>Wrangling F1 Data</i> Jupyter notebooks that make use of the Python wrapper: <a rel="nofollow" href="https://github.com/nackjicholson/wranglingf1data" target="_blank"><i>wranglingf1data</i></a>.</p>
<p> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ouseful.wordpress.com/16605/" target="_blank"><img border="0" alt="" src="http://feeds.wordpress.com/1.0/comments/ouseful.wordpress.com/16605/"></a> <img border="0" alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" data-recalc-dims="1"></p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://blog.ouseful.info/2017/07/14/ergastr-r-wrapper-for-ergast-f1-results-data-api/"> Rstats – OUseful.Info, the blog…</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 rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/d4Y1dYGV4GE" height="1"></a></div>