diff --git a/R_Exercises8.Rmd b/R_Exercises8.Rmd index 847dd8a..1af2b85 100644 --- a/R_Exercises8.Rmd +++ b/R_Exercises8.Rmd @@ -1,6 +1,6 @@ --- title: "R Exercises Session 8" -author: "Introduction to R for Data Management and Analysis" +author: Mary Bearkland output: word_document --- @@ -22,22 +22,38 @@ place. Do **NOT** rename the file. Check your work by knitting the document. 1. Create a level 2 header below in Markdown with the name "Answer 1". - +##Answer 2 2. Add an unordered Markdown list of your favorite food dishes and add their ingredients as sub-items in the list. You should enter at least two dishes with two ingredients each. +* Pad Thai + + Noodles + + Peanut Sauce + + Tofu +* Greek Salad + + Lettuce + + Feta Cheese + + tomatoes + 3. Insert an R code chunk below. Show the `summary` of the `Orange` dataset. Run a linear regression using the `lm` function to predict `circumference` from `age` and assign the result. Show the `summary` of the fit object that you assigned. +```{r} +data("Orange") +summary(Orange) +fit<-lm(circumference~age, Orange) +summary(fit) +``` 4. Add an RMarkdown weblink (in link format) below to your favorite R reference website. +[adding a weblink] https://stackoverflow.com/questions/29787850/how-do-i-add-a-url-to-r-markdown 5. Replace the author field in the `yaml` header with your name and then successfully `knit` the RMarkdown document into a Word document.