Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update R_Exercises8.Rmd #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions R_Exercises8.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "R Exercises Session 8"
author: "Introduction to R for Data Management and Analysis"
author: Mary Bearkland
output: word_document
---

Expand All @@ -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.
Expand Down