<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/rtutor-driving-electric-or-gasoline-cars-comparing-the-pollution-damages/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://feedproxy.google.com/~r/skranz_R/~3/rAoeOZeo1Y4/Electric_Cars.html"> Economics and R - R posts</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>How does driving an electric car compare to driving a similar gasoline car in terms of total pollution damages? While some comments about the future of mobility may suggest that electric cars are already clearly much more environmental friendly, the answer is not at all clear cut and depends on a lot of factors. For example, how does one weight local pollutions that mainly create health damages against carbon dioxide emmisions that contribute to global warming? While the local pollution damages of a gasoline car mainly depend on where the car is driven, a most relevant factor for electric cars is which power plants generate the required electricity. Also outside temperatures play an important role by affecting the efficiency of electric cars.</p>
<p>In their very interesting article <a rel="nofollow" href="https://www.aeaweb.org/articles?id=10.1257/aer.20150897" target="_blank">Are There Environmental Benefits from Driving Electric Vehicles? The Importance of Local Factors</a> (American Economic Review, 2016) Stephen P. Holland, Erin T. Mansur, Nicholas Z. Muller and Andrew J. Yates conduct a careful analysis of this question for the United States.</p>
<p>As part of his Master Thesis at Ulm University, Felix Stickel has generated a very nice RTutor problem set that allows you to explore the insights in an entertaining, interactive fashion. You learn a lot about the question at hand, delve into detailed electricity and pollution data and at the same time can hone your data science and R skills.</p>
<p>Here is a small screenshot of one many graphs generated in the interactive problem set:</p>
<p><img src="https://i2.wp.com/skranz.github.io/images/ford_focus.png?w=456" data-recalc-dims="1"></p>
<hr>
<p>Like in previous RTutor problem sets, you can enter free R code in a web based shiny app. The code will be automatically checked and you can get hints how to proceed. In addition you are challenged by many multiple choice quizzes.</p>
<p>You can test the problem set online on the rstudio.cloud: <a rel="nofollow" href="https://rstudio.cloud/project/139129" target="_blank">https://rstudio.cloud/project/139129</a> Source the <code>run.R</code> file to start the problem set.</p>
<p>If you don’t want to register at rstudio cloud, you can also check out the problem on shinyapps.io: <a rel="nofollow" href="https://felsti.shinyapps.io/RTutorECars" target="_blank">https://felsti.shinyapps.io/RTutorECars</a></p>
<p>The free shinyapps.io account is capped at 25 hours total usage time per month. So it may be greyed out when you click at it. Also, unlike on rstudio.cloud, you cannot save your progress on shinyapps.io.</p>
<p>To locally install the problem set, follow the installation guide at the problem set’s Github repository: <a rel="nofollow" href="https://github.com/felsti/RTutorECars" target="_blank">https://github.com/felsti/RTutorECars</a></p>
<p>If you want to learn more about RTutor, to try out other problem sets, or to create a problem set yourself, take a look at the RTutor Github page</p>
<p><a rel="nofollow" href="https://github.com/skranz/RTutor" target="_blank">https://github.com/skranz/RTutor</a></p>
<p><img width="1" alt="" src="http://feeds.feedburner.com/~r/skranz_R/~4/rAoeOZeo1Y4" height="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="http://feedproxy.google.com/~r/skranz_R/~3/rAoeOZeo1Y4/Electric_Cars.html"> Economics and R - R posts</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/sQrL9929KRo" height="1"></a></div>