Inputs and outputs for Rmarkdown

HTML - creates a HTML doccument output after knitting the Rmarkdown file and we should change the output to html_doccument in YAML of R markdown file

PDF - creates a pdf doccument output after knitting the Rmarkdown file and we should change the output to pdf_doccument in YAML of R markdown file

Word - creates a Word doccument output after knitting the Rmarkdown file and we should change the output to word_doccument in YAML of R markdown file

Section 1

Hello, this is Narender Tumu.Here I am including a 1st level Header.

Section 2

I am doing my In class activity and this is used for the second level header.

Section 3

This was for the third level header.

Text Formatting

Hello everyone, I am practicing on how to do the Text formatting using RMarkdown. I can also textformat my Rcode using Rcode. There are some other things that we can do which are superscript2 and a subscript2.

Code Chunks

knitr::include_graphics("https://github.com/dilernia/STA418-518/blob/main/uptownFunk.png?raw=true")

Including Plots

library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
## ✔ ggplot2 3.3.6      ✔ purrr   0.3.4 
## ✔ tibble  3.1.8      ✔ dplyr   1.0.10
## ✔ tidyr   1.2.0      ✔ stringr 1.4.1 
## ✔ readr   2.1.2      ✔ forcats 0.5.2 
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
mtcars %>% ggplot(aes(x = mpg, y = hp)) +geom_point()

Inline Code

xbar <- 2
se <- 1.3

The 95% confidence interval for the mean is (-0.548, 4.548)

Tables

my.table <- mtcars[1:5, 1:4]
colnames(my.table) <- c("MPG", "Cylinders", 
                        "Displacement", "Horsepower")
knitr::kable(my.table, digits = c(0, 1, 0, 0, 0), 
             align = c('l', 'r', 'r', 'r', 'r'), 
             row.names = TRUE)
MPG Cylinders Displacement Horsepower
Mazda RX4 21 6 160 110
Mazda RX4 Wag 21 6 160 110
Datsun 710 23 4 108 93
Hornet 4 Drive 21 6 258 110
Hornet Sportabout 19 8 360 175
flextable::flextable(my.table, cwidth = 1.15)