.Rmd –> knitr –> . md –> pandoc –> output: .html / pdf / word
eval=FALSE include echo message
chunk is function
** pdf: be careful : TexLive, LaTex error * MikeTex: 2.9 for window * TexLive: 2015, win, mac
need Latex install for pdf
servr package use
## 99 Data Use Cases
System
Key Contents
System
Contents
| Input data | Remark |
|---|---|
| Item_MOQ.xlsx | inv_30.R for pre test |
| Sys_summary | for all the system |
| SCM_Inv_30.R | for stand alone |
System
Contents
a <- c(1:3)
a
## [1] 1 2 3
YAML Header
When create pdf : no error not using Korean
The rmarkdown package is required, but does not need to be explicitly installed or loaded. This is because RStudio automatically performs it as needed.
inline equation: \(A =\pi * r^{2}\)
image:
block quote * item + sub-item 1
| table header | second header |
|---|---|
| table cell | cell 2 |
corporate diagnosis > build strategy > data utilization
mtcars[1:5, ]
## mpg cyl disp hp drat wt qsec vs am gear carb
## Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
## Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
## Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
## Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
## Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
\[ \begin{aligned} f(x) &= (x-a) (x-b) \\ &= x^2 - ax - bx + ab \\ \end{aligned} \]
setting: show output preview in viewer pane (select it in window)
step : file / NF / RMD : title , default output format > Knit (Knit to HTML, pdf, word )
caution: be careful when using Korean
y <- dbinom(0:20, size=20, prob=0.3)
plot(0:20, y, type='h', lwd=5, col="grey", ylab="Probability", xlab="probability variable X",
main = c("X ~ B(20, 0.5)"))
We have data about 53940 diamonds. Only 126 are larger than 2.5 carats. The distribution of the remainder is shown below:
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:
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
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.