--- title: "Rmarkdown Intro" author: 'Debdeep Pati (Acknowledgement to Moumita Karmakar and Melinda K. Higgins)' output: html_document: default pdf_document: default word_document: default Date: null --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` # This is a level one header ## R Markdown ### This is a level three heder 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 . Here is a link to [GOOGLE](https://www.google.com) Here is a word in **biology** and another word __stat__. Here is a word in *biology* and another word _stat_. When we compile our document, we are using the `rmarkdown` package Here are some example R code ``` x<-rep(1,10) mean(x) ``` Here is an example of a non-numbered list * BreakFast - food + eggs + toast + bacon - drink + apple juice * Lunch - taco * Dinner - baked chicken - broccoli -rice You can also make a numbered list 1. Breakfast a. food i) egg 2. Lunch a. honey glazed salmon 3. Dinner a. pork ribs b. sauted veggies c. pasta Here is an example of blockquote: > This is a block quote. > This paragraph has two lines > > 1. this is a list inside a block quote > 2. second item Here is an example of nested block quote > This is a block quote. > This paragraph has two lines > > > this text is nested Here is an example of R code in blockquote: > 2+2 > mean(c(1,2,3,4,5)) 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: ```{r cars} summary(cars) ``` ## Including Plots You can also embed plots, for example: ```{r pressure, echo=FALSE} plot(pressure) ``` Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. ```{r pressurenew, fig.width=5, fig.height=5 } plot(pressure) ``` ## inserting table Here is an useful link Another useful is **kable** function from `knitr` package. Another useful one is `printr` package ```{r} knitr::kable(head(cars)) ``` ## insert an equation $$ Y = \beta_{0} + \beta_{1}x $$ ### inserting images ![metadata](/Users/debdeeppati/Dropbox/TAMU/teaching/UGbayes/markdown/source.gif) #![cry](source.gif) ## insert text with some footnotes Here is the footnote [^1] and [^longnote] Here is inline note ^[inine notes are easier to write ] [^longnote]:longnote [^1]: first footnote