--- title: "Assignment 1" author: "Your Name" date: "December 3, 2014" output: pdf_document --- # Purpose of this document This is the default template for all assignments you produce for RPOS/RPAD 517. Please use this template for each assignment. The template uses the Markdown format and can easily be opened and edited in RStudio. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see . Please submit your assignments as PDF files. For this, you need to have \ \LaTeX \ installed on your computer; we will go over this on Day 1. When you click the **Knit PDF** button, a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: - First, type \ \verb+```{r}+ \ in a new line after a blank line - Then, type your R code - Close the code chunk on a new line with \ \verb+```+ \. Continue your text after a blank line. In your R Markdown file (saved with the ending .Rmd), if you entered the following R commands, preceded by \ \verb+```{r}+ \ and followed by \ \verb+```+ \, the PDF version of your data analysis notebook would contain the following output: ```{r} Var1 <- rnorm(n = 1000, mean = 0, sd = 1) summary(Var1) ``` You can also embed plots, for example: ```{r} hist(Var1, breaks = 30, main = "", col = "deepskyblue") ``` In each assignment you turn in, please include as title the name of the assignment, e.g. "In-class assignment Day 1". Then, please write the answer to each question/exercise under a separate header. Headers are indicated in your Markdown code by the # sign. Also please include all code used in the assignment. The default setting of this template already takes care of this. # 1 Here, write your answer to question 1. # 2 Here, write your answer to question 2.