---
title: "Assignment X"
author: "Your Name"
date: "`r format(Sys.Date(), '%B %e, %Y')`"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

You can use this file as a template for your your homework solutions.

* Make sure to replace all template content with you own.

* Your submissions should read as a proper report with complete
  senstences explaining your results.


## 1. R Markdown Basics

Your solution to each problem should start with a _level 2 header_, a
single line title with two sharp signs `#` followed my a space as the
first three characters of the line. The header should include the
problem number and title as it appears on the assignment page.

You can use **bold**, _italics_, or **_both_** for emphasis.

You can use back ticks to get a fixed width font with a grey
background. This is usually used for variable names like `faithful` or
package names like `ggplot2`.

You can create a bullet list

* First item
* Second item

or a numbered list

1. First item
2. Second item


## 2. Inline Computations

You can have R compute a value for you and have it inserted in your
document, like 1 + 2 = `r 1 + 2`.


## 3. Code Chunks

You can use code chunks to do some setup, like loading a package, without
showing anything in the final document.

```{r, include = FALSE}
library(ggplot2)
```

You can show some code without having it run:

```{r, eval = FALSE}
lm(waiting ~ eruptions, data = faithful)
```

You can have a code chunk do a computation and display the results.

```{r}
mean(faithful$eruptions)
```

If the code produces graphical output then the output will be included in
your document.

```{r, echo = FALSE}
ggplot(faithful, aes(x = eruptions, y = waiting)) + geom_point()
```

For a report you would usully not want to show the code, only results.
Specifying the _chunk option_ `echo = FALSE` prevents R Markown from
including the code in the output.


## R Markdown Resources

* [R Markdown: The Definitive Guide](https://bookdown.org/yihui/rmarkdown/)
  by Yihui Xie is a book-length presentation.
* The [R Markdown Home Page](https://rmarkdown.rstudio.com) has a link
  to a [tutorial](https://rmarkdown.rstudio.com/lesson-1.html).
