Publications by Alfan
Belajar Array dengan bahasa R
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 with...
1256 sym 1 img
Document
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 with...
1410 sym R (2227 sym/24 pcs) 1 img
belajar Looping
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 with...
1410 sym R (2227 sym/24 pcs) 1 img
Matriks
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 with...
1135 sym 1 img
DIAGRAM GARIS
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 with...
854 sym R (1796 sym/21 pcs) 2 img
contoh sederhana ggplot2
Visualisasi data diamonds dengan menggunakan ggplot2 library(ggplot2) head(diamonds) ## # A tibble: 6 × 10 ## carat cut color clarity depth table price x y z ## <dbl> <ord> <ord> <ord> <dbl> <dbl> <int> <dbl> <dbl> <dbl> ## 1 0.23 Ideal E SI2 61.5 55 326 3.95 3.98 2.43 ## 2 0.21 Premium E...
60 sym R (685 sym/3 pcs) 1 img
Data Frame
Data frame adalah kumpulan data yang terdiri dari variabel yang memiliki karakteristik seperti matriks untuk memunculkan R data sets bisa menggunakan data (),sedangkan untuk melihat informasi dari data yang kita masukkan kita bisa menuliskanya di consol dengan ?namadata.untuk mendapatkan ringkasan data gunakan str( ) maupun summary ( ) df <-...
358 sym
Membuat Data Frame
game <- c ('game of life') User <- c('skipper','cowalsky','ricko','mark','vin') poin <- c(370, 1100, 138, 890, 300) level <- factor(c('normal','another','easy','hard','normal')) group <- data.frame(game,User,poin,level) str(group) ## 'data.frame': 5 obs. of 4 variables: ## $ game : chr "game of life" "game of life" "game of life" "gam...
136 sym
Visualisasi Data 2 Frame Plant
library(ggplot2) head(CO2) ## Plant Type Treatment conc uptake ## 1 Qn1 Quebec nonchilled 95 16.0 ## 2 Qn1 Quebec nonchilled 175 30.4 ## 3 Qn1 Quebec nonchilled 250 34.8 ## 4 Qn1 Quebec nonchilled 350 37.2 ## 5 Qn1 Quebec nonchilled 500 35.3 ## 6 Qn1 Quebec nonchilled 675 39.2 ggplot(data= CO2) data<-CO...
32 sym R (2775 sym/21 pcs) 8 img
HISTOGRAM
library(ggplot2) library(ggplot2movies) data1 <- movies str(data1) ## tibble [58,788 × 24] (S3: tbl_df/tbl/data.frame) ## $ title : chr [1:58788] "$" "$1000 a Touchdown" "$21 a Day Once a Month" "$40,000" ... ## $ year : int [1:58788] 1971 1939 1941 1996 1975 2000 2002 2002 1987 1917 ... ## $ length : int [1:58788] 121 7...
242 sym R (2726 sym/12 pcs) 5 img