SlideShare a Scribd company logo
1 of 12
Download to read offline
2020 1 30
1 2
2 2
3 2
3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4 4
4.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.2 R mode . . . . . . . . . . . . . . . . . . . . . . . . 4
4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.4 NULL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
5 6
5.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6 7
6.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
7 11
7.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
8 11
1
2
1
•
•
• logical, numeric, complex, character
•
•
•
2
R #
#
> #################
> ##
> #################
> cat("ABC") #
ABC
3
> 3 * 4
[1] 12
> 3 * 4 + 2
[1] 14
> 3 * (4 + 2)
[1] 18
> 3/4
[1] 0.75
> -5 / -6
[1] 0.8333333
> (-5)/(-6)
[1] 0.8333333
2
I 2
3.1 2
> 2^3 # ^
[1] 8
> 2**3 # * 2
[1] 8
> 2^3*4 #
[1] 32
> 2^(3*4)
[1] 4096
> 2**3*4 # ** *
[1] 32
> 2**(3*4)
[1] 4096
> sqrt(2)
[1] 1.414214
> 2^(1/2)
[1] 1.414214
log(2) log(2)= loge 2 = ln 2
log(100,10)= log10 100
> log(2)
[1] 0.6931472
> log(100, 10)
[1] 2
> exp(1)
[1] 2.718282
> exp(0.6931472)
[1] 2
absolute values
> abs(-0.2)
[1] 0.2
> abs(0.2)
[1] 0.2
3.1
•
•
•
I 3
2
•
4
4.1
•
• 0 1 0 1
•
=⇒
• R mode
4.2 R mode
• logical : TRUE FALSE
T F
• numeric : R numeric
• complex : i
• character :
mode() mode mode()
> mode(TRUE)
[1] "logical"
> mode(FALSE)
[1] "logical"
> mode(pi) # pi
[1] "numeric"
> mode(2.0)
[1] "numeric"
> mode(2)
[1] "numeric"
> mode(2+2i)
[1] "complex"
> mode(" ")
[1] "character"
I 4
4.3 2
is. ()
> is.character(" ")
[1] TRUE
> is.numeric(" ")
[1] FALSE
> is.numeric(3.14)
[1] TRUE
> is.numeric(pi)
[1] TRUE
> is.logical(FALSE)
[1] TRUE
> is.logical(1)
[1] FALSE
4.3
’<-’
> x <- 3 # x 3
> x #
[1] 3
> is.numeric(x) # x
[1] TRUE
> y <- " "
> y
[1] " "
> is.character(y)
[1] TRUE
> is.numeric(x)
[1] TRUE
> mode(y)
[1] "character"
4.4 NULL
• 0 1 0
NULL
• R NULL
> x <- NULL # NULL
> x # x NULL
NULL
I 5
4.5 2
> is.numeric(x)
[1] FALSE
> is.null(x) # NULL
[1] TRUE
> mode(x) # NULL mode "NULL"
[1] "NULL"
> x <- FALSE # x
> is.null(x) # NULL
[1] FALSE
> is.logical(x)
[1] TRUE
> mode(x)
[1] "logical"
4.5
•
• mode
•
• logical numeric complex character
• mode()
• is. ()
•
• NULL
5
1
R
• vector : mode 1
1
• matrix : mode 2
• array : mode n
I 6
5.1 2
• list :
• data.frame : 2
mode
3
5.1
•
•
• vector, matrix, array, list
•
6
6.1
c() c() combine 1
> c(1, 2, 3, 4) #
[1] 1 2 3 4
> c(1, 2, c(3, 4)) #
[1] 1 2 3 4
> v <- c("a", "b", "c") #
> v # v
[1] "a" "b" "c"
> c(v, v, c(1, 2, 3)) #
[1] "a" "b" "c" "a" "b" "c" "1" "2" "3"
6.2
replicate rep(x, times) x times
I 7
6.3 2
> rep(1, 5)
[1] 1 1 1 1 1
> rep(" ", 3)
[1] " " " " " "
> rep(TRUE, 3)
[1] TRUE TRUE TRUE
> rep(c(1, 2), 3) #
[1] 1 2 1 2 1 2
rep()
sequence seq(from, to, by) from to by
by 1
> seq(1, 10)
[1] 1 2 3 4 5 6 7 8 9 10
> seq(1, 10, 2) # 2
[1] 1 3 5 7 9
> seq(10, 1)
[1] 10 9 8 7 6 5 4 3 2 1
> seq(10, 1, -2)
[1] 10 8 6 4 2
6.3
[1]
> seq(1, 50)
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
[28] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
> 1
[1] 1
1 1
[]
> x <- 1:10
> x
[1] 1 2 3 4 5 6 7 8 9 10
> x[1]
[1] 1
> x[2]
[1] 2
I 8
6.4 2
> x[10]
[1] 10
[]
> days <- c(" ", " ", " ", " ", " ", " ", " ")
> days
[1] " " " " " " " " " " " " " "
> days[3]
[1] " "
> days[c(1, 2, 3)]
[1] " " " " " "
> days[1:3]
[1] " " " " " "
> days[seq(2, 7, 2)] # 2 1 1
[1] " " " " " "
> days[-3] # 3
[1] " " " " " " " " " " " "
> days[-1:-3] # 1 3
[1] " " " " " " " "
> days[-seq(2, 7, 2)] # seq(2,7,2) c(2,4,6)
[1] " " " " " " " "
length()
> length(days)
[1] 7
> length(x)
[1] 10
6.4
1 1 R
1 50 :
1:50 seq(1,50) 1
> x <- 1:50 # seq(1, 50)
> x
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
I 9
6.5 2
[28] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
> y <- 50:1 # seq(50, 1)
> y
[1] 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24
[28] 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
> x * 2 # 2
[1] 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
[21] 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80
[41] 82 84 86 88 90 92 94 96 98 100
> x / 2 # 2
[1] 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0
[17] 8.5 9.0 9.5 10.0 10.5 11.0 11.5 12.0 12.5 13.0 13.5 14.0 14.5 15.0 15.5 16.0
[33] 16.5 17.0 17.5 18.0 18.5 19.0 19.5 20.0 20.5 21.0 21.5 22.0 22.5 23.0 23.5 24.0
[49] 24.5 25.0
> x + 100 # 100
[1] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
[21] 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
[41] 141 142 143 144 145 146 147 148 149 150
> x + y # x y
[1] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
[28] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
> log(1:5) # log(c(1, 2, 3, 4, 5)) log
[1] 0.0000000 0.6931472 1.0986123 1.3862944 1.6094379
> (1:5)^2 # c(1, 2, 3, 4, 5)^2
[1] 1 4 9 16 25
(1:5)^2 1:5
2 1:5^2 1 52
= 25
> 1:5^2 # 1:25
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
6.5
• :
• c() rep() seq()
•
• length()
I 10
2
7
rep()
> help(rep)
standard deviation help.search()
> help.serach("standard deviation")
stats::sd stats
sd() help(sd)
R
source
R source
help.search()
7.1
• help()
• help.search()
•
• sd()
8
(1) 2, 4, 6, 8, 10 10
[1] 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10
[26] 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10
> rep(seq(2, 10, 2), 10)
(2) 2, 4, 6, 8, 10 100
I 11
2
> rep(seq(2, 10, 2), 100)
(3) sd() 2
> sd(rep(seq(2, 10, 2), 10))
[1] 2.857143
> sd(rep(seq(2, 10, 2), 100))
[1] 2.83126
I 12

More Related Content

What's hot

第9回 大規模データを用いたデータフレーム操作実習(3)
第9回 大規模データを用いたデータフレーム操作実習(3)第9回 大規模データを用いたデータフレーム操作実習(3)
第9回 大規模データを用いたデータフレーム操作実習(3)Wataru Shito
 
ใบงาน 6.1 6.4
ใบงาน 6.1 6.4ใบงาน 6.1 6.4
ใบงาน 6.1 6.4oraneehussem
 
doğal gaz altyapı yapım kontrol personeli (seviye 4)
doğal gaz altyapı yapım kontrol personeli (seviye 4)doğal gaz altyapı yapım kontrol personeli (seviye 4)
doğal gaz altyapı yapım kontrol personeli (seviye 4)Cagandroid
 
యెహోవా దేవుని ఏడు పండుగలు.pdf
యెహోవా దేవుని ఏడు పండుగలు.pdfయెహోవా దేవుని ఏడు పండుగలు.pdf
యెహోవా దేవుని ఏడు పండుగలు.pdfDr. Johnson Satya
 
Working with NoSQL in a SQL Database (XDevApi)
Working with NoSQL in a SQL Database (XDevApi)Working with NoSQL in a SQL Database (XDevApi)
Working with NoSQL in a SQL Database (XDevApi)Lior Altarescu
 
5.Analytical Function.pdf
5.Analytical Function.pdf5.Analytical Function.pdf
5.Analytical Function.pdfssuser8b6c85
 
Giáo trình vương quốc cờ vua tập 3
Giáo trình vương quốc cờ vua tập 3Giáo trình vương quốc cờ vua tập 3
Giáo trình vương quốc cờ vua tập 3www.HocCoVua.com
 
Clojure Intro
Clojure IntroClojure Intro
Clojure Introthnetos
 
Pipeline oriented programming
Pipeline oriented programmingPipeline oriented programming
Pipeline oriented programmingScott Wlaschin
 
..Expresiones Algebraicas Racionales.pdf
..Expresiones Algebraicas Racionales.pdf..Expresiones Algebraicas Racionales.pdf
..Expresiones Algebraicas Racionales.pdfMonzonMonzon
 
The aggregate function - from sequential and parallel folds to parallel aggre...
The aggregate function - from sequential and parallel folds to parallel aggre...The aggregate function - from sequential and parallel folds to parallel aggre...
The aggregate function - from sequential and parallel folds to parallel aggre...Philip Schwarz
 
Strona bierna w języku niemieckim (Marcin Perliński)
Strona bierna w języku niemieckim (Marcin Perliński)Strona bierna w języku niemieckim (Marcin Perliński)
Strona bierna w języku niemieckim (Marcin Perliński)Asgard71
 
Lightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraLightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraScyllaDB
 

What's hot (20)

第9回 大規模データを用いたデータフレーム操作実習(3)
第9回 大規模データを用いたデータフレーム操作実習(3)第9回 大規模データを用いたデータフレーム操作実習(3)
第9回 大規模データを用いたデータフレーム操作実習(3)
 
ใบงาน 6.1 6.4
ใบงาน 6.1 6.4ใบงาน 6.1 6.4
ใบงาน 6.1 6.4
 
doğal gaz altyapı yapım kontrol personeli (seviye 4)
doğal gaz altyapı yapım kontrol personeli (seviye 4)doğal gaz altyapı yapım kontrol personeli (seviye 4)
doğal gaz altyapı yapım kontrol personeli (seviye 4)
 
యెహోవా దేవుని ఏడు పండుగలు.pdf
యెహోవా దేవుని ఏడు పండుగలు.pdfయెహోవా దేవుని ఏడు పండుగలు.pdf
యెహోవా దేవుని ఏడు పండుగలు.pdf
 
Sql Injection Myths and Fallacies
Sql Injection Myths and FallaciesSql Injection Myths and Fallacies
Sql Injection Myths and Fallacies
 
Working with NoSQL in a SQL Database (XDevApi)
Working with NoSQL in a SQL Database (XDevApi)Working with NoSQL in a SQL Database (XDevApi)
Working with NoSQL in a SQL Database (XDevApi)
 
5.Analytical Function.pdf
5.Analytical Function.pdf5.Analytical Function.pdf
5.Analytical Function.pdf
 
Giáo trình vương quốc cờ vua tập 3
Giáo trình vương quốc cờ vua tập 3Giáo trình vương quốc cờ vua tập 3
Giáo trình vương quốc cờ vua tập 3
 
Java Quiz Questions
Java Quiz QuestionsJava Quiz Questions
Java Quiz Questions
 
Clojure Intro
Clojure IntroClojure Intro
Clojure Intro
 
Pipeline oriented programming
Pipeline oriented programmingPipeline oriented programming
Pipeline oriented programming
 
PLU DE BAIE-MAHAULT - 2 -RAPPORT DE PRESENTATION 1ère partie (2.1. et 2.2.)
PLU DE BAIE-MAHAULT - 2 -RAPPORT DE PRESENTATION 1ère partie (2.1. et 2.2.)PLU DE BAIE-MAHAULT - 2 -RAPPORT DE PRESENTATION 1ère partie (2.1. et 2.2.)
PLU DE BAIE-MAHAULT - 2 -RAPPORT DE PRESENTATION 1ère partie (2.1. et 2.2.)
 
JORNADA 10 LIGA MURO.pdf
JORNADA 10 LIGA MURO.pdfJORNADA 10 LIGA MURO.pdf
JORNADA 10 LIGA MURO.pdf
 
Sistemas 5x5
Sistemas 5x5Sistemas 5x5
Sistemas 5x5
 
SQL Tuning 101
SQL Tuning 101SQL Tuning 101
SQL Tuning 101
 
..Expresiones Algebraicas Racionales.pdf
..Expresiones Algebraicas Racionales.pdf..Expresiones Algebraicas Racionales.pdf
..Expresiones Algebraicas Racionales.pdf
 
The aggregate function - from sequential and parallel folds to parallel aggre...
The aggregate function - from sequential and parallel folds to parallel aggre...The aggregate function - from sequential and parallel folds to parallel aggre...
The aggregate function - from sequential and parallel folds to parallel aggre...
 
Strona bierna w języku niemieckim (Marcin Perliński)
Strona bierna w języku niemieckim (Marcin Perliński)Strona bierna w języku niemieckim (Marcin Perliński)
Strona bierna w języku niemieckim (Marcin Perliński)
 
極める routes.php
極める routes.php極める routes.php
極める routes.php
 
Lightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache CassandraLightweight Transactions in Scylla versus Apache Cassandra
Lightweight Transactions in Scylla versus Apache Cassandra
 

Similar to R mode, vectors, sequences, repetition and standard deviation

PRE: Datamining 2nd R
PRE: Datamining 2nd RPRE: Datamining 2nd R
PRE: Datamining 2nd Rsesejun
 
Datamining R 1st
Datamining R 1stDatamining R 1st
Datamining R 1stsesejun
 
Datamining r 1st
Datamining r 1stDatamining r 1st
Datamining r 1stsesejun
 
第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出しWataru Shito
 
第4回 データフレームの基本操作 その2
第4回 データフレームの基本操作 その2第4回 データフレームの基本操作 その2
第4回 データフレームの基本操作 その2Wataru Shito
 
第3回 データフレームの基本操作 その1
第3回 データフレームの基本操作 その1第3回 データフレームの基本操作 その1
第3回 データフレームの基本操作 その1Wataru Shito
 
Attention-Based Adaptive Selection of Operations for Image Restoration in the...
Attention-Based Adaptive Selection of Operations for Image Restoration in the...Attention-Based Adaptive Selection of Operations for Image Restoration in the...
Attention-Based Adaptive Selection of Operations for Image Restoration in the...MasanoriSuganuma
 
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdf
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdfΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdf
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdfAnthimos Misailidis
 
Visual art 1
Visual art 1Visual art 1
Visual art 1pironchit
 
Introduction to machine learning algorithms
Introduction to machine learning algorithmsIntroduction to machine learning algorithms
Introduction to machine learning algorithmsbigdata trunk
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Jhonatan Minchán
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_prialeJeff Chasi
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manualMahrukh Khalid
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaLuis Perez Anampa
 
01_introduction_lab.pdf
01_introduction_lab.pdf01_introduction_lab.pdf
01_introduction_lab.pdfzehiwot hone
 
Thesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti EngineeringThesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti EngineeringMarcus Ljungblad
 

Similar to R mode, vectors, sequences, repetition and standard deviation (20)

PRE: Datamining 2nd R
PRE: Datamining 2nd RPRE: Datamining 2nd R
PRE: Datamining 2nd R
 
Datamining R 1st
Datamining R 1stDatamining R 1st
Datamining R 1st
 
Datamining r 1st
Datamining r 1stDatamining r 1st
Datamining r 1st
 
第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し
 
第4回 データフレームの基本操作 その2
第4回 データフレームの基本操作 その2第4回 データフレームの基本操作 その2
第4回 データフレームの基本操作 その2
 
第3回 データフレームの基本操作 その1
第3回 データフレームの基本操作 その1第3回 データフレームの基本操作 その1
第3回 データフレームの基本操作 その1
 
Attention-Based Adaptive Selection of Operations for Image Restoration in the...
Attention-Based Adaptive Selection of Operations for Image Restoration in the...Attention-Based Adaptive Selection of Operations for Image Restoration in the...
Attention-Based Adaptive Selection of Operations for Image Restoration in the...
 
11o Φ.Α. 8.1.pdf
11o Φ.Α. 8.1.pdf11o Φ.Α. 8.1.pdf
11o Φ.Α. 8.1.pdf
 
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdf
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdfΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdf
ΛΥΣΕΙΣ - 11o Φ.Α. 8.1.pdf
 
Visual art 1
Visual art 1Visual art 1
Visual art 1
 
R programming language
R programming languageR programming language
R programming language
 
Introduction to machine learning algorithms
Introduction to machine learning algorithmsIntroduction to machine learning algorithms
Introduction to machine learning algorithms
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_priale
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economia
 
MATLAB ARRAYS
MATLAB ARRAYSMATLAB ARRAYS
MATLAB ARRAYS
 
01_introduction_lab.pdf
01_introduction_lab.pdf01_introduction_lab.pdf
01_introduction_lab.pdf
 
Mat fin
Mat finMat fin
Mat fin
 
Thesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti EngineeringThesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti Engineering
 

More from Wataru Shito

第3章 遅延学習---最近傍法を使った分類
第3章 遅延学習---最近傍法を使った分類第3章 遅延学習---最近傍法を使った分類
第3章 遅延学習---最近傍法を使った分類Wataru Shito
 
統計的推定の基礎 2 -- 分散の推定
統計的推定の基礎 2 -- 分散の推定統計的推定の基礎 2 -- 分散の推定
統計的推定の基礎 2 -- 分散の推定Wataru Shito
 
統計的推定の基礎 1 -- 期待値の推定
統計的推定の基礎 1 -- 期待値の推定統計的推定の基礎 1 -- 期待値の推定
統計的推定の基礎 1 -- 期待値の推定Wataru Shito
 
第4章 確率的学習---単純ベイズを使った分類
第4章 確率的学習---単純ベイズを使った分類第4章 確率的学習---単純ベイズを使った分類
第4章 確率的学習---単純ベイズを使った分類Wataru Shito
 
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノートWataru Shito
 
演習II.第1章 ベイズ推論の考え方 Part 3.スライド
演習II.第1章 ベイズ推論の考え方 Part 3.スライド演習II.第1章 ベイズ推論の考え方 Part 3.スライド
演習II.第1章 ベイズ推論の考え方 Part 3.スライドWataru Shito
 
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノートWataru Shito
 
演習II.第1章 ベイズ推論の考え方 Part 2.スライド
演習II.第1章 ベイズ推論の考え方 Part 2.スライド演習II.第1章 ベイズ推論の考え方 Part 2.スライド
演習II.第1章 ベイズ推論の考え方 Part 2.スライドWataru Shito
 
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノートWataru Shito
 
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」Wataru Shito
 
経済数学II 「第9章 最適化(Optimization)」
経済数学II 「第9章 最適化(Optimization)」経済数学II 「第9章 最適化(Optimization)」
経済数学II 「第9章 最適化(Optimization)」Wataru Shito
 
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」Wataru Shito
 
経済数学II 「第12章 制約つき最適化」
経済数学II 「第12章 制約つき最適化」経済数学II 「第12章 制約つき最適化」
経済数学II 「第12章 制約つき最適化」Wataru Shito
 
マクロ経済学I 「第9章 総需要 I」
マクロ経済学I 「第9章 総需要 I」マクロ経済学I 「第9章 総需要 I」
マクロ経済学I 「第9章 総需要 I」Wataru Shito
 
経済数学II 「第11章 選択変数が2個以上の場合の最適化」
経済数学II 「第11章 選択変数が2個以上の場合の最適化」経済数学II 「第11章 選択変数が2個以上の場合の最適化」
経済数学II 「第11章 選択変数が2個以上の場合の最適化」Wataru Shito
 
マクロ経済学I 「第6章 開放経済の長期分析」
マクロ経済学I 「第6章 開放経済の長期分析」マクロ経済学I 「第6章 開放経済の長期分析」
マクロ経済学I 「第6章 開放経済の長期分析」Wataru Shito
 
経済数学II 「第8章 一般関数型モデルの比較静学」
経済数学II 「第8章 一般関数型モデルの比較静学」経済数学II 「第8章 一般関数型モデルの比較静学」
経済数学II 「第8章 一般関数型モデルの比較静学」Wataru Shito
 
マクロ経済学I 「第4,5章 貨幣とインフレーション」
マクロ経済学I 「第4,5章 貨幣とインフレーション」マクロ経済学I 「第4,5章 貨幣とインフレーション」
マクロ経済学I 「第4,5章 貨幣とインフレーション」Wataru Shito
 
マクロ経済学I 「第3章 長期閉鎖経済モデル」
マクロ経済学I 「第3章 長期閉鎖経済モデル」マクロ経済学I 「第3章 長期閉鎖経済モデル」
マクロ経済学I 「第3章 長期閉鎖経済モデル」Wataru Shito
 
経済数学II 「第7章 微分法とその比較静学への応用」
経済数学II 「第7章 微分法とその比較静学への応用」経済数学II 「第7章 微分法とその比較静学への応用」
経済数学II 「第7章 微分法とその比較静学への応用」Wataru Shito
 

More from Wataru Shito (20)

第3章 遅延学習---最近傍法を使った分類
第3章 遅延学習---最近傍法を使った分類第3章 遅延学習---最近傍法を使った分類
第3章 遅延学習---最近傍法を使った分類
 
統計的推定の基礎 2 -- 分散の推定
統計的推定の基礎 2 -- 分散の推定統計的推定の基礎 2 -- 分散の推定
統計的推定の基礎 2 -- 分散の推定
 
統計的推定の基礎 1 -- 期待値の推定
統計的推定の基礎 1 -- 期待値の推定統計的推定の基礎 1 -- 期待値の推定
統計的推定の基礎 1 -- 期待値の推定
 
第4章 確率的学習---単純ベイズを使った分類
第4章 確率的学習---単純ベイズを使った分類第4章 確率的学習---単純ベイズを使った分類
第4章 確率的学習---単純ベイズを使った分類
 
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 3.講義ノート
 
演習II.第1章 ベイズ推論の考え方 Part 3.スライド
演習II.第1章 ベイズ推論の考え方 Part 3.スライド演習II.第1章 ベイズ推論の考え方 Part 3.スライド
演習II.第1章 ベイズ推論の考え方 Part 3.スライド
 
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 2.講義ノート
 
演習II.第1章 ベイズ推論の考え方 Part 2.スライド
演習II.第1章 ベイズ推論の考え方 Part 2.スライド演習II.第1章 ベイズ推論の考え方 Part 2.スライド
演習II.第1章 ベイズ推論の考え方 Part 2.スライド
 
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート
演習II.第1章 ベイズ推論の考え方 Part 1.講義ノート
 
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」
マクロ経済学I 「第8章 総需要・総供給分析(AD-AS分析)」
 
経済数学II 「第9章 最適化(Optimization)」
経済数学II 「第9章 最適化(Optimization)」経済数学II 「第9章 最適化(Optimization)」
経済数学II 「第9章 最適化(Optimization)」
 
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」
マクロ経済学I 「第10章 総需要 II.IS-LM分析とAD曲線」
 
経済数学II 「第12章 制約つき最適化」
経済数学II 「第12章 制約つき最適化」経済数学II 「第12章 制約つき最適化」
経済数学II 「第12章 制約つき最適化」
 
マクロ経済学I 「第9章 総需要 I」
マクロ経済学I 「第9章 総需要 I」マクロ経済学I 「第9章 総需要 I」
マクロ経済学I 「第9章 総需要 I」
 
経済数学II 「第11章 選択変数が2個以上の場合の最適化」
経済数学II 「第11章 選択変数が2個以上の場合の最適化」経済数学II 「第11章 選択変数が2個以上の場合の最適化」
経済数学II 「第11章 選択変数が2個以上の場合の最適化」
 
マクロ経済学I 「第6章 開放経済の長期分析」
マクロ経済学I 「第6章 開放経済の長期分析」マクロ経済学I 「第6章 開放経済の長期分析」
マクロ経済学I 「第6章 開放経済の長期分析」
 
経済数学II 「第8章 一般関数型モデルの比較静学」
経済数学II 「第8章 一般関数型モデルの比較静学」経済数学II 「第8章 一般関数型モデルの比較静学」
経済数学II 「第8章 一般関数型モデルの比較静学」
 
マクロ経済学I 「第4,5章 貨幣とインフレーション」
マクロ経済学I 「第4,5章 貨幣とインフレーション」マクロ経済学I 「第4,5章 貨幣とインフレーション」
マクロ経済学I 「第4,5章 貨幣とインフレーション」
 
マクロ経済学I 「第3章 長期閉鎖経済モデル」
マクロ経済学I 「第3章 長期閉鎖経済モデル」マクロ経済学I 「第3章 長期閉鎖経済モデル」
マクロ経済学I 「第3章 長期閉鎖経済モデル」
 
経済数学II 「第7章 微分法とその比較静学への応用」
経済数学II 「第7章 微分法とその比較静学への応用」経済数学II 「第7章 微分法とその比較静学への応用」
経済数学II 「第7章 微分法とその比較静学への応用」
 

Recently uploaded

Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 

Recently uploaded (20)

Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 

R mode, vectors, sequences, repetition and standard deviation

  • 1. 2020 1 30 1 2 2 2 3 2 3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 4 4.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4.2 R mode . . . . . . . . . . . . . . . . . . . . . . . . 4 4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4.4 NULL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 5 6 5.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 6 7 6.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 6.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 6.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 6.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 6.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7 11 7.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8 11 1
  • 2. 2 1 • • • logical, numeric, complex, character • • • 2 R # # > ################# > ## > ################# > cat("ABC") # ABC 3 > 3 * 4 [1] 12 > 3 * 4 + 2 [1] 14 > 3 * (4 + 2) [1] 18 > 3/4 [1] 0.75 > -5 / -6 [1] 0.8333333 > (-5)/(-6) [1] 0.8333333 2 I 2
  • 3. 3.1 2 > 2^3 # ^ [1] 8 > 2**3 # * 2 [1] 8 > 2^3*4 # [1] 32 > 2^(3*4) [1] 4096 > 2**3*4 # ** * [1] 32 > 2**(3*4) [1] 4096 > sqrt(2) [1] 1.414214 > 2^(1/2) [1] 1.414214 log(2) log(2)= loge 2 = ln 2 log(100,10)= log10 100 > log(2) [1] 0.6931472 > log(100, 10) [1] 2 > exp(1) [1] 2.718282 > exp(0.6931472) [1] 2 absolute values > abs(-0.2) [1] 0.2 > abs(0.2) [1] 0.2 3.1 • • • I 3
  • 4. 2 • 4 4.1 • • 0 1 0 1 • =⇒ • R mode 4.2 R mode • logical : TRUE FALSE T F • numeric : R numeric • complex : i • character : mode() mode mode() > mode(TRUE) [1] "logical" > mode(FALSE) [1] "logical" > mode(pi) # pi [1] "numeric" > mode(2.0) [1] "numeric" > mode(2) [1] "numeric" > mode(2+2i) [1] "complex" > mode(" ") [1] "character" I 4
  • 5. 4.3 2 is. () > is.character(" ") [1] TRUE > is.numeric(" ") [1] FALSE > is.numeric(3.14) [1] TRUE > is.numeric(pi) [1] TRUE > is.logical(FALSE) [1] TRUE > is.logical(1) [1] FALSE 4.3 ’<-’ > x <- 3 # x 3 > x # [1] 3 > is.numeric(x) # x [1] TRUE > y <- " " > y [1] " " > is.character(y) [1] TRUE > is.numeric(x) [1] TRUE > mode(y) [1] "character" 4.4 NULL • 0 1 0 NULL • R NULL > x <- NULL # NULL > x # x NULL NULL I 5
  • 6. 4.5 2 > is.numeric(x) [1] FALSE > is.null(x) # NULL [1] TRUE > mode(x) # NULL mode "NULL" [1] "NULL" > x <- FALSE # x > is.null(x) # NULL [1] FALSE > is.logical(x) [1] TRUE > mode(x) [1] "logical" 4.5 • • mode • • logical numeric complex character • mode() • is. () • • NULL 5 1 R • vector : mode 1 1 • matrix : mode 2 • array : mode n I 6
  • 7. 5.1 2 • list : • data.frame : 2 mode 3 5.1 • • • vector, matrix, array, list • 6 6.1 c() c() combine 1 > c(1, 2, 3, 4) # [1] 1 2 3 4 > c(1, 2, c(3, 4)) # [1] 1 2 3 4 > v <- c("a", "b", "c") # > v # v [1] "a" "b" "c" > c(v, v, c(1, 2, 3)) # [1] "a" "b" "c" "a" "b" "c" "1" "2" "3" 6.2 replicate rep(x, times) x times I 7
  • 8. 6.3 2 > rep(1, 5) [1] 1 1 1 1 1 > rep(" ", 3) [1] " " " " " " > rep(TRUE, 3) [1] TRUE TRUE TRUE > rep(c(1, 2), 3) # [1] 1 2 1 2 1 2 rep() sequence seq(from, to, by) from to by by 1 > seq(1, 10) [1] 1 2 3 4 5 6 7 8 9 10 > seq(1, 10, 2) # 2 [1] 1 3 5 7 9 > seq(10, 1) [1] 10 9 8 7 6 5 4 3 2 1 > seq(10, 1, -2) [1] 10 8 6 4 2 6.3 [1] > seq(1, 50) [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 [28] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 > 1 [1] 1 1 1 [] > x <- 1:10 > x [1] 1 2 3 4 5 6 7 8 9 10 > x[1] [1] 1 > x[2] [1] 2 I 8
  • 9. 6.4 2 > x[10] [1] 10 [] > days <- c(" ", " ", " ", " ", " ", " ", " ") > days [1] " " " " " " " " " " " " " " > days[3] [1] " " > days[c(1, 2, 3)] [1] " " " " " " > days[1:3] [1] " " " " " " > days[seq(2, 7, 2)] # 2 1 1 [1] " " " " " " > days[-3] # 3 [1] " " " " " " " " " " " " > days[-1:-3] # 1 3 [1] " " " " " " " " > days[-seq(2, 7, 2)] # seq(2,7,2) c(2,4,6) [1] " " " " " " " " length() > length(days) [1] 7 > length(x) [1] 10 6.4 1 1 R 1 50 : 1:50 seq(1,50) 1 > x <- 1:50 # seq(1, 50) > x [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 I 9
  • 10. 6.5 2 [28] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 > y <- 50:1 # seq(50, 1) > y [1] 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 [28] 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 > x * 2 # 2 [1] 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 [21] 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 [41] 82 84 86 88 90 92 94 96 98 100 > x / 2 # 2 [1] 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 [17] 8.5 9.0 9.5 10.0 10.5 11.0 11.5 12.0 12.5 13.0 13.5 14.0 14.5 15.0 15.5 16.0 [33] 16.5 17.0 17.5 18.0 18.5 19.0 19.5 20.0 20.5 21.0 21.5 22.0 22.5 23.0 23.5 24.0 [49] 24.5 25.0 > x + 100 # 100 [1] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 [21] 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 [41] 141 142 143 144 145 146 147 148 149 150 > x + y # x y [1] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 [28] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 > log(1:5) # log(c(1, 2, 3, 4, 5)) log [1] 0.0000000 0.6931472 1.0986123 1.3862944 1.6094379 > (1:5)^2 # c(1, 2, 3, 4, 5)^2 [1] 1 4 9 16 25 (1:5)^2 1:5 2 1:5^2 1 52 = 25 > 1:5^2 # 1:25 [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 6.5 • : • c() rep() seq() • • length() I 10
  • 11. 2 7 rep() > help(rep) standard deviation help.search() > help.serach("standard deviation") stats::sd stats sd() help(sd) R source R source help.search() 7.1 • help() • help.search() • • sd() 8 (1) 2, 4, 6, 8, 10 10 [1] 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 [26] 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 2 4 6 8 10 > rep(seq(2, 10, 2), 10) (2) 2, 4, 6, 8, 10 100 I 11
  • 12. 2 > rep(seq(2, 10, 2), 100) (3) sd() 2 > sd(rep(seq(2, 10, 2), 10)) [1] 2.857143 > sd(rep(seq(2, 10, 2), 100)) [1] 2.83126 I 12