<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/r-markdown-exercises-part-2/"></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/04/r-markdown-exercises-part-2/?utm_source=rss&utm_medium=rss&utm_campaign=r-markdown-exercises-part-2"> 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="https://i2.wp.com/www.r-exercises.com/wp-content/uploads/2017/07/document-428335__340.jpg" target="_blank"><img sizes="(max-width: 150px) 100vw, 150px" src="https://i1.wp.com/www.r-exercises.com/wp-content/uploads/2017/07/document-428335__340-150x150.jpg?resize=150%2C150" alt="" class="wp-image-7151" data-recalc-dims="1"></a><strong>INTRODUCTION</strong></p>
<p>R Markdown is one of the most popular data science tools and is used to save and execute code, create exceptional reports whice are easily shareable.</p>
<p>The documents that R Markdown provides are fully reproducible and support a wide variety of static and dynamic output formats. </p>
<p>Using markdown syntax, which provides an easy way of creating documents that can be converted to many other file types, while embeding R code in the report, so it is not necessary to keep the report and R script separately. Furthermore The report is written as normal text, so knowledge of HTML is not required. Of course no additional files are needed because everything is incorporated in the HTML file.</p>
<p>Before proceeding, please follow our short <a rel="nofollow" href="http://r-exercises.com/2017/07/21/how-to-create-reports-with-r-markdown-in-rstudio/" target="_blank">tutorial.<br>
</a><br>
Look at the examples given and try to understand the logic behind them. Then try to solve the exercises below using R and without looking at the answers. Then check the <a rel="nofollow" href="http://r-exercises.com/2017/08/04/r-markdown-exercises-part-2-solutions/" target="_blank">solutions.<br>
</a> to check your answers.</p>
<p><strong>Exercise 1</strong></p>
<p>Make a table out of the object dataframe you created and set its numbers to have one significant figure. <strong>HINT</strong>: Use <code>kable()</code>.</p>
<p><strong>Exercise 2</strong></p>
<p>Use bold text for your report’s title. <strong>HINT</strong>: Use <code>** **</code>.</p>
<p><strong>Exercise 3</strong></p>
<p>Use Italic text for the author’s name. <strong>HINT</strong>: Use <code>* *</code>.</p>
<div>
<aside><img src="http://www.r-exercises.com/2017/08/04/r-markdown-exercises-part-2/?utm_source=rss&utm_medium=rss&utm_campaign=r-markdown-exercises-part-2"></aside>
<div><strong>Learn more</strong> about reporting your results in the online course: <a rel="nofollow" href="http://www.r-exercises.com/product/r-for-data-science-solutions/" target="_blank">R for Data Science Solutions</a>. In this course you will learn how to:
<ul>
<li>Build a complete workflow in R for your data science problem</li>
<li>Get indepth on how to report your results in a interactive way</li>
<li>And much more</li>
</ul>
</div>
</div>
<p><strong>Exercise 4</strong></p>
<p>Add “Summary” as Header of size 1 above your summary context.</p>
<p><strong>Exercise 5</strong></p>
<p>Add “Plot”, “Dataframe” and “Table 1” as Headers of size 3 above the rest of the three objects of your report respectively.</p>
<p><strong>Exercise 6</strong></p>
<p>Create manually a small table for your dataframe.</p>
<p><strong>Exercise 7</strong></p>
<p>Apply right alignment to the column “B”.</p>
<p><strong>Exercise 8</strong></p>
<p>Create an unordered list of the contents of column “A” of your dataframe.</p>
<p><strong>Exercise 9</strong></p>
<p>Transform the list you just created to ordered.</p>
<p><strong>Exercise 10</strong></p>
<p>Add a link named “Link” that leads to “www.r-exercises.com”.</p>
<div>
<h3>Related exercise sets:</h3>
<ol>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/07/21/how-to-create-reports-with-r-markdown-in-rstudio/" title="How to create reports with R Markdown in RStudio" target="_blank">How to create reports with R Markdown in RStudio </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/07/29/r-markdown-exercises/" title="R Markdown exercises part 1" target="_blank">R Markdown exercises part 1 </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2016/12/12/building-shiny-app-exercises-part-1/" title="Building Shiny App exercises part 1" target="_blank">Building Shiny App exercises 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/04/r-markdown-exercises-part-2/?utm_source=rss&utm_medium=rss&utm_campaign=r-markdown-exercises-part-2"> 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/FZrHYTv0ztE" height="1"></a></div>