Trulli
www.rstudio.com

Overview

By the end of this practical you will know how to:

  1. Create a new R Markdown file (.Rmd)
  2. “Knit” an R Markdown file to an .html or .pdf report
  3. Format text using formatting tags
  4. Create code chunks
  5. Add plots and tables
  6. Include code output in sentences with inline chunks

Datasets

File Description Rows Columns
mcdonalds.csv Nutrition information from McDonalds menu items 260 24
happiness.csv Results from the World Health Organisation happiness survey 155 12

Packages

Package Installation
tidyverse install.packages("tidyverse")
knitr install.packages("knitr")
DT install.packages("DT")
broom install.packages("broom")
rmdformats install.packages("rmdformats")

Cheatsheet