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:
## [,1] [,2] [,3] [,4] [,5] [,6] [,7]
## [1,] 0.5134556 0.4865444 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [2,] 0.3725260 0.0000000 0.627474 0.0000000 0.0000000 0.0000000 0.0000000
## [3,] 0.2971032 0.0000000 0.000000 0.7028968 0.0000000 0.0000000 0.0000000
## [4,] 0.2412884 0.0000000 0.000000 0.0000000 0.7587116 0.0000000 0.0000000
## [5,] 0.2157032 0.0000000 0.000000 0.0000000 0.0000000 0.7842968 0.0000000
## [6,] 0.1815981 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.8184019
## [7,] 0.1740859 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [8,] 0.1798926 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [9,] 0.1691897 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [10,] 0.1599643 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [11,] 0.1379310 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [12,] 0.1264786 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [13,] 0.0000000 0.0000000 0.000000 0.0000000 0.0000000 0.0000000 0.0000000
## [,8] [,9] [,10] [,11] [,12] [,13]
## [1,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [2,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [3,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [4,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [5,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [6,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [7,] 0.8259141 0.0000000 0.0000000 0.0000000 0.000000 0.0000000
## [8,] 0.0000000 0.8201074 0.0000000 0.0000000 0.000000 0.0000000
## [9,] 0.0000000 0.0000000 0.8308103 0.0000000 0.000000 0.0000000
## [10,] 0.0000000 0.0000000 0.0000000 0.8400357 0.000000 0.0000000
## [11,] 0.0000000 0.0000000 0.0000000 0.0000000 0.862069 0.0000000
## [12,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.8735214
## [13,] 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 1.0000000
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.