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.
The documents that R Markdown provides are fully reproducible and support a wide variety of static and dynamic output formats.
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.
Before proceeding, please follow our short tutorial.
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 solutions.
to check your answers.
Make a table out of the object dataframe you created and set its numbers to have one significant figure. HINT: Use
Use bold text for your report’s title. HINT: Use
Use Italic text for the author’s name. HINT: Use
Add “Summary” as Header of size 1 above your summary context.
Add “Plot”, “Dataframe” and “Table 1” as Headers of size 3 above the rest of the three objects of your report respectively.
Create manually a small table for your dataframe.
Apply right alignment to the column “B”.
Create an unordered list of the contents of column “A” of your dataframe.
Transform the list you just created to ordered.
Add a link named “Link” that leads to “www.r-exercises.com”.