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:

## [1] 10 20 40 15 40
## [1] 1000 2000 3000 4000 5000
## [1] 40
## [1] 15
## [1] 15
## [1] 10 40 15
## [1] 20 40 15
## [1] 10 20 40 15 40
## [1]    10    20   100 10000    40
## [1] 10 40 45 30 80
## [1] 10 40 30 80
## [1] 10 40 30
## [1] 40
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 100  95  90
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 25 60 60 55
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 70
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 100  95  25  90
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 70 25 60 60 55
##  [1] 100  95  70  80  25  60  80  60  55  90
## [1] 100  95
## [1] 100
## [1] 95
## [1] 70
## [1] 80
## [1] 35
## [1] 70
## [1] 80
## [1] 70
## [1] 65
## [1] 90
## [1] "numeric"
## [1] "numeric"
## [1] "character"
## [1] "character"
## [1] FALSE
## [1] TRUE
## [1] "logical"
## [1] "logical"
## [1] 16
## [1] "function"
## [1] 5 7 9
## [1] 3 4 5
## [1] -1 -1 -1
## [1] 2 4 6
## [1] 2 4 6
## [1]  9 36  1
## [1] 2 0 1
## [1] 7
## [1]  25  50  60  70  80 100
## [1] -50  20  10 -20
## [1] 260
## [1] 9
## [1] 3
## [1] 95
## [1] 10
## [1] 2.718282
## [1] 7.389056
## [1] 3.141593
## [1] 3.14
## [1] 3.141592654
##  [1]  1  2  3  4  5  6  7  8  9 10
## [1] 2.0 2.5 3.0 3.5
## [1] 2
## [1] 5
## [1] 8
## [1] 11
## [1] 14
## [1] 17
## [1] 20
## [1] 23
## [1] 26
## [1] 29
##  [1]  2  5  8 11 14 17 20 23 26 29
## A
## 10 30 40 60 70 80 90 
##  5  2  2  2  2  1  2
## A
##     10     30     40     60     70     80     90 
## 0.3125 0.1250 0.1250 0.1250 0.1250 0.0625 0.1250
## hasil
## tidak    ya 
##     3     7
## hasil
## tidak    ya 
##   0.3   0.7
## [1] ikan  ikan  udang ikan  udang ikan  ikan  udang
## Levels: ikan udang
## [1] sarjana      diploma      sarjana      pengangguran sarjana     
## [6] diploma      diploma      pengangguran
## Levels: diploma pengangguran sarjana

## A
## 10 20 30 40 
##  5  3  2  1

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