<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/working-with-air-quality-and-meteorological-data-exercises-part-1/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.r-exercises.com/2017/08/15/working-with-air-quality-and-meteorological-data-exercises-part-1/"> R-exercises</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="http://www.r-exercises.com/wp-content/uploads/2017/08/esempio.bmp" target="_blank"><img alt="" width="442" src="http://www.r-exercises.com/wp-content/uploads/2017/08/esempio.bmp" class="wp-image-7351" height="215"></a>Atmospheric air pollution is one of the most important environmental concerns in many countries around the world, and it is strongly affected by meteorological conditions. Accordingly, in this set of exercises we use <code>openair</code> package to work and analyze air quality and meteorological data. This packages provides tools to directly import data from air quality measurement network across UK, as well as tools to analyse and producing reports. In this exercise set we will import and analyze data from MY1 station which is located in Marylebone Road in London, UK.</p>
<p>Answers to the exercises are available <a rel="nofollow" href="http://r-exercises.com/2017/08/15/working-with-air-quality-and-meteorological-data-exercises-part-1-solutions/" target="_blank">here</a>.</p>
<p>Please install and load the package <code>openair</code> before starting the exercises.</p>
<p><strong>Exercise 1</strong><br>
Import the MY1 data for the year 2016 and save it into a dataframe called my1data.</p>
<p><strong>Exercise 2</strong><br>
Get basic statistical summaries of myd1 dataframe. </p>
<p><strong>Exercise 3</strong><br>
Calculate monthly means of:<br>
a. pm10<br>
b. pm2.5<br>
b. nox<br>
c. no<br>
d. o3</p>
<div>
<aside><img src="http://www.r-exercises.com/2017/08/15/working-with-air-quality-and-meteorological-data-exercises-part-1/"></aside>
<div>You can use Air Quality Data and weather patterns in combination with spatial data visualization, <strong>Learn more</strong> about spatial data in the online course <a rel="nofollow" href="http://www.r-exercises.com/product/intermediate-spatial-data-analysis-with-r-qgis-more/" target="_blank"><br>
[Intermediate] Spatial Data Analysis with R, QGIS &amp; More</a>. this course you will learn how to:
<ul>
<li>Work with Spatial data and maps</li>
<li>Learn about different tools to develop spatial data next to R</li>
<li>And much more</li>
</ul>
</div>
</div>
<p><strong>Exercise 4</strong><br>
Calculate daily means of:<br>
a. pm10<br>
b. pm2.5<br>
b. nox<br>
c. no<br>
d. o3</p>
<p><strong>Exercise 5</strong><br>
calculate daily maximum of:<br>
b. nox<br>
c. no</p>
<div>
<h3>Related exercise sets:</h3>
<ol>
<li><a rel="nofollow" href="http://www.r-exercises.com/2016/03/21/data-table-exercises-keys-and-subsetting/" title="Data table exercises: keys and subsetting" target="_blank">Data table exercises: keys and subsetting </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/06/10/density-based-clustering-exercises/" title="Density-Based Clustering Exercises" target="_blank">Density-Based Clustering Exercises </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/05/24/data-wrangling-part-1-io/" title="Data wrangling : I/O (Part-1)" target="_blank">Data wrangling : I/O (Part-1) </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/start-here-to-learn-r/" target="_blank">Explore all our (>1000) R exercises</a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/r-courses/" target="_blank">Find an R course using our R Course Finder</a> directory</li>
</ol>
</div>
	<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://www.r-exercises.com/2017/08/15/working-with-air-quality-and-meteorological-data-exercises-part-1/"> R-exercises</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/QLBQkpsCz2s" height="1"></a></div>