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:

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:

##    CO_ID              CoName     Date   Close
## 1     50 Yuanta Taiwan Top50 20100104 37.5723
## 2     52       FB Technology 20100104 23.1720
## 3     56       PTD           20100104 11.9283
## 4     50 Yuanta Taiwan Top50 20100105 37.5723
## 5     52       FB Technology 20100105 23.2037
## 6     56       PTD           20100105 11.8775
## 7     50 Yuanta Taiwan Top50 20100106 38.2705
## 8     52       FB Technology 20100106 23.7433
## 9     56       PTD           20100106 12.0552
## 10    50 Yuanta Taiwan Top50 20100107 38.1708
##    CO_ID     Date   Close
## 1     50 20100104 37.5723
## 2     52 20100104 23.1720
## 3     56 20100104 11.9283
## 4     50 20100105 37.5723
## 5     52 20100105 23.2037
## 6     56 20100105 11.8775
## 7     50 20100106 38.2705
## 8     52 20100106 23.7433
## 9     56 20100106 12.0552
## 10    50 20100107 38.1708
## Using close as value column: use value.var to override.
## date   50   52   56 
##    0    0    0    0
## 'data.frame':    2954 obs. of  4 variables:
##  $ date: int  20100104 20100105 20100106 20100107 20100108 20100111 20100112 20100113 20100114 20100115 ...
##  $ 50  : num  37.6 37.6 38.3 38.2 38.4 ...
##  $ 52  : num  23.2 23.2 23.7 23.5 23.4 ...
##  $ 56  : num  11.9 11.9 12.1 12 12.1 ...
##        date      50      52      56
## 1  20100104 37.5723 23.1720 11.9283
## 2  20100105 37.5723 23.2037 11.8775
## 3  20100106 38.2705 23.7433 12.0552
## 4  20100107 38.1708 23.4894 11.9537
## 5  20100108 38.4035 23.4195 12.0805
## 6  20100111 38.5033 23.5529 12.2074
## 7  20100112 38.3038 23.4894 12.1415
## 8  20100113 37.7385 23.4894 12.0095
## 9  20100114 38.2040 23.4894 12.1821
## 10 20100115 38.4368 23.8703 12.2430

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.