### Some formatting options library(tidyverse) options(width = 80) theme_set(theme_bw(base_size = 10)) knitr::opts_chunk$set(comment = "", fig.width = 5, fig.asp = 0.75, fig.align = "left", warning = FALSE, echo = TRUE, eval = TRUE)
To complete this lab report, we load the following packages and datasets.
library(MA22004labs) # ADD YOUR PACKAGES/DATASETS BELOW
Update/change/delete the example text below as appropriate.
Note the #-signs before the text turn "Exercise 1" into a heading. # for title, ## for heading, ### for sub-heading, #### for sub-sub-heading, etc. Only put one whitespace after a period; end a line with two spaces to start a new paragraph.
Some formatting options: Bold text, italic text, ~~strikethrough text~~, superscript^2^, link to google.
Ordered Lists can be made:
Unordered lists:
Here is a block quote.
Here is some inline math $2+2=4$ and $x^2$ and $X_1, \dots, X_n$, and here is some display math: [F(x) = \int_a^x f(t) dt \,.]
Within the R
chunk, named "answer-1", below you can insert code that will run and produce output in your Knitted report. Note that each chunk must be assigned a different name.
# Insert your code for here. # Within a code chunk the # starts a comment line. # Comments are not evaluated by R.
Now for something fancy: the command Sys.Date()
prints the date. The date is: r Sys.Date()
.
\newpage
Insert your text here or below the R
chunk if you like.
# Insert your code for Exercise 2 here
\newpage
Insert your text here or below the R
chunk if you like.
# Insert code for Exercise 3 here
\newpage
Insert your text here or below the R
chunk if you like.
# Insert code for Exercise 4 here
Turn your Rmarkdown document into a PDF by clicking on the Knit button.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.