This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
I am adding some text here like a Microsoft Word document may have
When you click the Knit 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:
Below is an example of an R chunk.
answer <- 7/9 + sin(2)
count20 <- 1:20
count20
## [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
count100_by_5 <- seq(from = 5, to = 100, by = 5)
count100_by_5
## [1] 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
## [20] 100
prod <- count20 * count100_by_5
prod
## [1] 5 20 45 80 125 180 245 320 405 500 605 720 845 980 1125
## [16] 1280 1445 1620 1805 2000
Multiplying 7 by 14 gives us the result of 98.
The value of one_value is at least 10.
Now let’s print out what the result of the squared value of ‘answer’ is
answer_squared <- answer^2
answer_squared
## [1] 2.846223
You can add italics by surrounding a word in underscores: italics
We can bold a word by surrounding it with double underscores: bold
We can do bold and italics with underscore and double asterisks: bold and italicized
Finally we can strike through a phrase with two tildes:
strikethrough
Next we will add a link to Chesthair Dior’s webpage. Here is the link
Let’s create a grocery list:
We can also create ordered lists using numbers:
We can have a paragraph (or two) here describing how we could go about making breakfast. If we indent the paragraph a few spaces and create a newline, it will indent below the item.
Here is an example of text with only a line break. You may expect this line to appear in a new paragraph but it doesn’t.
Here is an example of text with a line break and white space.
You may expect this line to appear in a new paragraph and it does.
Reproducible research is the idea that data analyses, and more generally, scientific claims, are published with their data and software code so that others may verify the findings and build upon them. - Roger Peng
Here is how you add a mathematical equation:
\(y = mx + b\)
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.