Commit 3a4a1247 authored by Chanchaidechachai, Thanicha's avatar Chanchaidechachai, Thanicha
Browse files

r markdown

parent 0ddc7033
---
title: "Reproducible research"
author: "Ann Thanicha"
date: "10/14/2021"
output:
html_document: default
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## 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>.
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}
a<-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}
library(ggbeeswarm)
library(bench)
library(proftools)
library(profvis)
library(data.table)
library(bench)
library(ggplot2)
library(microbenchmark)
library(ggplot2)
x<- rep(1,1000000)
compare <- microbenchmark(mean(x), sum(x) / length(x), times = 1000)
compare <- microbenchmark(mean.default(x), mean(x), times = 1000)
autoplot(compare)
autoplot(compare)
```
##Try the header
**text** is created with `**text**'` or `__text__` (double underscores)
_text_ is created with `_text_` (single underscore) or `*text*`
**_text_** is created with either `**_text_**` or `__*text*__` (explaining the double forms for bold and italic!)
x^2^ is created with `x^2^`
x~2~ is created with `x~2~`
an inline equation e.g. $y = \alpha + \beta \times x + \varepsilon$, is created with
`$y = \alpha + \beta \times x + \varepsilon$`
a displayed equation (centered on its own line) is created by
using `$$` at the start and end instead.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment