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] 79 130 66 1572 325 152 249 325 161 113 233 88 90 137 577
## [16] 86 40 678 54 34 66 0 16 72 99 88 412 100 523 143
## [31] 107 27 155 98 56 172 96 76 227 44 216 187 26 29 47
## [46] 57 174 18 77 12 48 285 202 64 66 65 164 40 76 139
## [61] 101 144 179 219 60 77 48 697 53 84 146 449 226 172 99
## [76] 411 0 85 56 29 86 370 190 101 99 140 130 270 30 107
## [91] 331 78 301 111 124 153 51 115 310 328 0 1505 63 13 59
## [106] 955 181 193 125 217 28 NA 117 79 15 4 431 7 7 6
## [121] 2 186 1 3 7 7 198 9 4 3 8 7 7 11 28
## [136] 56 32 32 129 77 143 227 859 377 41 76 189 80 148 24
## [151] 302 166 358 161 319 54 117 115 187 84 363 244 290 243 18
## [166] 113 77 485 1622 99 188 30 163 179 204 165 1047 234 250 154
## [181] 150 102 226 345 68 62 223 61 104 146 102 766 63 113 442
## [196] 278 64 52 30 1155 139 40 53 220 114 39 859 137 54 74
## [211] 98 264 36 11 435 114 17 15 87 227 86 179 74 332 80
## [226] 95 188 109 367 102 113 94 14 43 98 13 237 112 101 145
## [241] 535 118 484 315 5172 154 73 96 98 53 71 194 226 238 755
## [256] 47 126 104 167 152 128 234 61 66 529 42 75 61 162 47
## [271] 696 215 534 143 46 98 25 204 202 148 40 71 104 34 129
## [286] 72 15 102 469 57 23 141 19 71 72 54 93 62 78 14
## [301] 231 72 197 330 148 208 148 154 142 107 22 84 59 65 24
## [316] 186 58 74 180 168 36 51 67 1372 57 33 79 97 617 139
## [331] 199 107 50 64 55 142 72 79 244 307 212 95 194 101 46
## [346] 156 821 58 155 1639 155 166 210 400 98 138 148 267 144 256
## [361] 72 87 129 179 194 124 304 138 41 163 407 447 38 93 59
## [376] 286 66 236 152 1998 186 235 64 92 53 140 48 112 35 37
## [391] 48 766 96 57 114 51 87 81 71 164 91 329 128 379 52
## [406] 63 97 56 36 138 142 75 89 63 176 227 25 0 27 39
## [421] 61 32 2 109 32 68 6 213 2 3 6 4 4 211 15
## [436] 95 127 136 32 76 28 0 664 62 48 55 197 88 59 234
## [451] 148 96 49 98 198 159 22 154 128 129 1546 79 214 134 268
## [466] 128 47 200 264 193 114 160 46 136 73 65 579 101 74 84
## [481] 360 5 187 69 82 12 56 44 277 74 79 105 128 185 125
## [496] 53 53 93 91 91
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.