Header1

here will state the problem

second level Header

describe the previous problem

Third level header

some other text that I adore all the time

We can add an hypelink as seen : Google

for italic use italic text, for bold text use bold text and for code in r use rcode plys superscripts2^2 and subscripts2

R Markdown

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. for image use My image

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:http://rmarkdown.rstudio.com

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

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.

lets name our chunk uptown chunk

#{r uptownChunk, echo=FALSE, include=FALSE, eval=TRUE} #knitr::include_graphics("https:\\github.com/dilernia/STA418-518/blob/main/uptownFun#k.png?raw=true")

library(tidyverse)
mtcars %>% ggplot(aes(x = mpg, y = hp)) + geom_point()
xbar<-2
se<-1.3

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

Tables we use kable function, creates a data set with variables

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

Using flextable

library(flextable)
flextable::flextable(my.table, cwidth = 1.15)