SlideShare a Scribd company logo
1 of 81
Download to read offline
Methoken.



                              LET                      2011   1
                          @                3F CALL-2
                                    2011-07-16

Saturday, July 16, 2011                                           1
Saturday, July 16, 2011   2
•    ID: sakaue
                     •        :            ...     ...
                     •    Nagoya.R / HiRoshima.R
                     •    LET.R? (08/06)
                     •             ...


Saturday, July 16, 2011                                  3
Saturday, July 16, 2011   4
R   (

Saturday, July 16, 2011       5
“Surprise” by Jeremy Books   http://www.flickr.com/photos/jeremybrooks/3330306480/


Saturday, July 16, 2011                                                                                       6
“...O is for OK...”by ĐāżŦ {bad contact, no biscuit}
                           http://www.flickr.com/photos/darrentunnicliff/3695621678/

Saturday, July 16, 2011                                                               7
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            8
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            9
•
          •               Ross Ihaka & Robert Gentleman (R & R)

          •


Saturday, July 16, 2011                                           10
Saturday, July 16, 2011   11
•         IBM SPSS Statistics   10


                •
                •
Saturday, July 16, 2011                              12
•
                          •
                          •
                •
                          •   PC

Saturday, July 16, 2011            13
Ugeeeeeeeee




Saturday, July 16, 2011                 14
Excel          SPSS             ...

         •                     IBM SPSS Statistics   10


         •
                          • Excel
         •
Saturday, July 16, 2011                                         15
Excel
                          SPSS
Saturday, July 16, 2011           16
—Install / Update / Uninstall—



Saturday, July 16, 2011                    17
1. http://www.r-project.org/
            2. “download R”
            3. JAPAN
            4.              OS


Saturday, July 16, 2011                    18
• Windows: http://cran.md.tsukuba.ac.jp/bin/windows/base/
                • Download R 2.13.0 for Windows

       • Mac              OS X:   http://cran.md.tsukuba.ac.jp/bin/macosx/

                • R-2.13.0.pkg (latest version)


Saturday, July 16, 2011                                                      19
Saturday, July 16, 2011   20
Saturday, July 16, 2011   21
Saturday, July 16, 2011   22
Saturday, July 16, 2011   23
Saturday, July 16, 2011   24
Saturday, July 16, 2011   25
1. http://www.r-project.org/
                    2.

                    3.


Saturday, July 16, 2011                            26
• Windows
                 • START → Program → R → Uninstall R
                 • [Windows 7]      →


           • Mac OS X
            • /Applications                R           /
                          Library/Frameworks    R. framework


Saturday, July 16, 2011                                        27
• Windows
                 • START → Program → R → R 2.13.0
          • Mac OS X
                 • /Applications   R


                          R

Saturday, July 16, 2011                             28
• Windows      Mac OS X
                 1. q()
                 2.
                 3.         R


Saturday, July 16, 2011              29
•
                •                         Win

                 • [ ]→[GUI           ]
                 • Font [MS Mincho]

Saturday, July 16, 2011                         30
•         help(XXX) !!
           • seekR        (http://seekr.jp/)


           • R SEEK          (http://www.rseek.org/)


           • RjpWiki           (http://www.okada.jp.org/RWiki/)


           •R                                          (http://aoki2.si.gunma-u.ac.jp/R/)


           • R-Tips        (http://cse.naro.affrc.go.jp/takezawa/r-tips/r.html)


Saturday, July 16, 2011                                                                     31
•            R
              •
             •                         q()

             •                help(XXX) !!

Saturday, July 16, 2011                      32
Excel
                          SPSS
Saturday, July 16, 2011           33
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            34
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            35
Saturday, July 16, 2011   36
•                      [Enter]
                          • > 3+5 [Enter]
                          • > 10-3 [Enter]
                          • > 2*3 [Enter]
                          • > 100/20 [Enter]
                          • > (12 + 34 -56) * 78 / 90 [Enter]
Saturday, July 16, 2011                                         37
•
                          •   > 100^1/2
                          •   > 100^(1/2)
Saturday, July 16, 2011                     38
Saturday, July 16, 2011   39
Saturday, July 16, 2011   40
Saturday, July 16, 2011   41
“I don't know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/
Saturday, July 16, 2011                                                                             42
Saturday, July 16, 2011   43
sqrt()
                     •> sqrt(2)
                     • > sqrt(144)
                     •> sqrt(104976)
                     •[     ]2

                          • 2 3         1
                          • > 2^(1/3)
Saturday, July 16, 2011                     44
( )

        •          R

        • q()             help(xxx)

        •
Saturday, July 16, 2011               45
Saturday, July 16, 2011   46
Saturday, July 16, 2011   47
R




Saturday, July 16, 2011       48
Saturday, July 16, 2011   49
Saturday, July 16, 2011   50
“I don't know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/
Saturday, July 16, 2011                                                                             51
Saturday, July 16, 2011   52
“hako”

      •         > hako <- c(1,2,3,4,5)
      •         > hako
                  •       c()   concatenate/combine
                  •
Saturday, July 16, 2011                               53
c()        “<-”

          hako <- c(1,2,3,4,5)   “<-”

                                 ←

Saturday, July 16, 2011                 54
+         ...


                     •               [Enter]



                          • [STOP]
                          • [Esc]

Saturday, July 16, 2011                              55
hako


                1         5      5



Saturday, July 16, 2011              56
Saturday, July 16, 2011   57
•    > sqrt(hako)

                     • > log(hako)

Saturday, July 16, 2011                  58
sqrt(1), sqrt(2) ... sqrt(5)
                           log(1), log (2) ... log (5)

Saturday, July 16, 2011                                  59
Saturday, July 16, 2011   60
Saturday, July 16, 2011   61
•                    summary()

               •                  table()

               •          sum()

               •                       length()

Saturday, July 16, 2011                           62
•               mean()

          •                          max(), min()

          •               median()

          •                 sd()


Saturday, July 16, 2011                             63
•          R

               •
                          •   q(), help(), sqrt(), log(), c()

               •
Saturday, July 16, 2011                                         64
OK

Saturday, July 16, 2011        65
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            66
Agenda
                 1. R
                 2.
                 3.

Saturday, July 16, 2011            67
Saturday, July 16, 2011   68
Saturday, July 16, 2011   69
1.
                    2.



Saturday, July 16, 2011   70
2

                     Excel       SPSS
                                 ... orz
Saturday, July 16, 2011                    71
Saturday, July 16, 2011   72
> height <- c(160, 160, 160,
                    165, 170, 170, 170, 170, 175,
                    175, 180, 185, 185, 185, 190)
                    > hist(height)

Saturday, July 16, 2011                             73
TOEIC




Saturday, July 16, 2011           74
> score <- c(600, 500, 720, 430,
                  500, 550, 430, 500, 850, 400)
                  > words <- c(340, 190, 465, 170,
                  130, 225,140, 310, 580, 120)
                  > plot(score,words)

Saturday, July 16, 2011                              75
Saturday, July 16, 2011   76
> nns <- c(350, 285, 315, 340, 210,
             185, 120, 740, 425, 155)
             > ns <- c(365, 570, 645, 540, 645,
             665, 880, 550, 410, 585)
             > boxplot(nns,ns, names=c("NNS", "NS"))


Saturday, July 16, 2011                                77
Saturday, July 16, 2011   78
> share <- c(32.4, 21.0, 8.3, 4.1, 3.6,30.5)
               > names(share) <- c("NOKIA",
               "SAMSUNG", "LG", "Apple", "RIM", "Others")
               > pie(share,main="Mobile Phone Market
               Share", clockwise=TRUE)



Saturday, July 16, 2011                                       79
1.

                    2.




Saturday, July 16, 2011   80
Excel

                          “y2.d175 | Lasershow! Relax!” by B Rosen
                          http://www.flickr.com/photos/rosengrant/4751386872/
Saturday, July 16, 2011                                                   81

More Related Content

More from SAKAUE, Tatsuya

HiRoshimaR6_ExplodingBoxplot
HiRoshimaR6_ExplodingBoxplotHiRoshimaR6_ExplodingBoxplot
HiRoshimaR6_ExplodingBoxplotSAKAUE, Tatsuya
 
HiroshimaR6_Introduction
HiroshimaR6_IntroductionHiroshimaR6_Introduction
HiroshimaR6_IntroductionSAKAUE, Tatsuya
 
MethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpusMethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpusSAKAUE, Tatsuya
 
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」SAKAUE, Tatsuya
 
統計解析環境Rによる統計処理の基本―検定と視覚化―
統計解析環境Rによる統計処理の基本―検定と視覚化―統計解析環境Rによる統計処理の基本―検定と視覚化―
統計解析環境Rによる統計処理の基本―検定と視覚化―SAKAUE, Tatsuya
 
統計解析環境Rによる言語データの分析
統計解析環境Rによる言語データの分析統計解析環境Rによる言語データの分析
統計解析環境Rによる言語データの分析SAKAUE, Tatsuya
 
ポッドキャスト利用による個別学習の支援とリスニング不安への影響
ポッドキャスト利用による個別学習の支援とリスニング不安への影響ポッドキャスト利用による個別学習の支援とリスニング不安への影響
ポッドキャスト利用による個別学習の支援とリスニング不安への影響SAKAUE, Tatsuya
 
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」SAKAUE, Tatsuya
 
ベクタ画像と PNG 画像の比較
ベクタ画像と PNG 画像の比較ベクタ画像と PNG 画像の比較
ベクタ画像と PNG 画像の比較SAKAUE, Tatsuya
 
反応時間データをどう分析し図示するか
反応時間データをどう分析し図示するか反応時間データをどう分析し図示するか
反応時間データをどう分析し図示するかSAKAUE, Tatsuya
 
LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」SAKAUE, Tatsuya
 
授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用SAKAUE, Tatsuya
 
R のインストール手順(LET 2012用)
R のインストール手順(LET 2012用)R のインストール手順(LET 2012用)
R のインストール手順(LET 2012用)SAKAUE, Tatsuya
 
Nagoya.R #8 入門者講習資料
Nagoya.R #8 入門者講習資料Nagoya.R #8 入門者講習資料
Nagoya.R #8 入門者講習資料SAKAUE, Tatsuya
 

More from SAKAUE, Tatsuya (20)

HiRoshimaR6_ExplodingBoxplot
HiRoshimaR6_ExplodingBoxplotHiRoshimaR6_ExplodingBoxplot
HiRoshimaR6_ExplodingBoxplot
 
HiroshimaR6_Introduction
HiroshimaR6_IntroductionHiroshimaR6_Introduction
HiroshimaR6_Introduction
 
HiroshimaR5_Intro
HiroshimaR5_IntroHiroshimaR5_Intro
HiroshimaR5_Intro
 
JASELE2015-KumamotoWS
JASELE2015-KumamotoWSJASELE2015-KumamotoWS
JASELE2015-KumamotoWS
 
HiroshimaR4_LT_sakaue
HiroshimaR4_LT_sakaueHiroshimaR4_LT_sakaue
HiroshimaR4_LT_sakaue
 
Hiroshimar4_Rintro
Hiroshimar4_RintroHiroshimar4_Rintro
Hiroshimar4_Rintro
 
Hiroshimar3_rmecab
Hiroshimar3_rmecabHiroshimar3_rmecab
Hiroshimar3_rmecab
 
HiRoshimaR3_IntroR
HiRoshimaR3_IntroRHiRoshimaR3_IntroR
HiRoshimaR3_IntroR
 
MethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpusMethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpus
 
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」
外国語教育メディア学会第54回全国研究大会ワークショップ「Rによる外国語教育データの分析と可視化の基本」
 
統計解析環境Rによる統計処理の基本―検定と視覚化―
統計解析環境Rによる統計処理の基本―検定と視覚化―統計解析環境Rによる統計処理の基本―検定と視覚化―
統計解析環境Rによる統計処理の基本―検定と視覚化―
 
統計解析環境Rによる言語データの分析
統計解析環境Rによる言語データの分析統計解析環境Rによる言語データの分析
統計解析環境Rによる言語データの分析
 
ポッドキャスト利用による個別学習の支援とリスニング不安への影響
ポッドキャスト利用による個別学習の支援とリスニング不安への影響ポッドキャスト利用による個別学習の支援とリスニング不安への影響
ポッドキャスト利用による個別学習の支援とリスニング不安への影響
 
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
 
ベクタ画像と PNG 画像の比較
ベクタ画像と PNG 画像の比較ベクタ画像と PNG 画像の比較
ベクタ画像と PNG 画像の比較
 
反応時間データをどう分析し図示するか
反応時間データをどう分析し図示するか反応時間データをどう分析し図示するか
反応時間データをどう分析し図示するか
 
LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」
 
授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用
 
R のインストール手順(LET 2012用)
R のインストール手順(LET 2012用)R のインストール手順(LET 2012用)
R のインストール手順(LET 2012用)
 
Nagoya.R #8 入門者講習資料
Nagoya.R #8 入門者講習資料Nagoya.R #8 入門者講習資料
Nagoya.R #8 入門者講習資料
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

Methoken.R

  • 1. Methoken. LET 2011 1 @ 3F CALL-2 2011-07-16 Saturday, July 16, 2011 1
  • 3. ID: sakaue • : ... ... • Nagoya.R / HiRoshima.R • LET.R? (08/06) • ... Saturday, July 16, 2011 3
  • 5. R ( Saturday, July 16, 2011 5
  • 6. “Surprise” by Jeremy Books http://www.flickr.com/photos/jeremybrooks/3330306480/ Saturday, July 16, 2011 6
  • 7. “...O is for OK...”by ĐāżŦ {bad contact, no biscuit} http://www.flickr.com/photos/darrentunnicliff/3695621678/ Saturday, July 16, 2011 7
  • 8. Agenda 1. R 2. 3. Saturday, July 16, 2011 8
  • 9. Agenda 1. R 2. 3. Saturday, July 16, 2011 9
  • 10. • Ross Ihaka & Robert Gentleman (R & R) • Saturday, July 16, 2011 10
  • 12. IBM SPSS Statistics 10 • • Saturday, July 16, 2011 12
  • 13. • • • • PC Saturday, July 16, 2011 13
  • 15. Excel SPSS ... • IBM SPSS Statistics 10 • • Excel • Saturday, July 16, 2011 15
  • 16. Excel SPSS Saturday, July 16, 2011 16
  • 17. —Install / Update / Uninstall— Saturday, July 16, 2011 17
  • 18. 1. http://www.r-project.org/ 2. “download R” 3. JAPAN 4. OS Saturday, July 16, 2011 18
  • 19. • Windows: http://cran.md.tsukuba.ac.jp/bin/windows/base/ • Download R 2.13.0 for Windows • Mac OS X: http://cran.md.tsukuba.ac.jp/bin/macosx/ • R-2.13.0.pkg (latest version) Saturday, July 16, 2011 19
  • 26. 1. http://www.r-project.org/ 2. 3. Saturday, July 16, 2011 26
  • 27. • Windows • START → Program → R → Uninstall R • [Windows 7] → • Mac OS X • /Applications R / Library/Frameworks R. framework Saturday, July 16, 2011 27
  • 28. • Windows • START → Program → R → R 2.13.0 • Mac OS X • /Applications R R Saturday, July 16, 2011 28
  • 29. • Windows Mac OS X 1. q() 2. 3. R Saturday, July 16, 2011 29
  • 30. • Win • [ ]→[GUI ] • Font [MS Mincho] Saturday, July 16, 2011 30
  • 31. help(XXX) !! • seekR (http://seekr.jp/) • R SEEK (http://www.rseek.org/) • RjpWiki (http://www.okada.jp.org/RWiki/) •R (http://aoki2.si.gunma-u.ac.jp/R/) • R-Tips (http://cse.naro.affrc.go.jp/takezawa/r-tips/r.html) Saturday, July 16, 2011 31
  • 32. R • • q() • help(XXX) !! Saturday, July 16, 2011 32
  • 33. Excel SPSS Saturday, July 16, 2011 33
  • 34. Agenda 1. R 2. 3. Saturday, July 16, 2011 34
  • 35. Agenda 1. R 2. 3. Saturday, July 16, 2011 35
  • 37. [Enter] • > 3+5 [Enter] • > 10-3 [Enter] • > 2*3 [Enter] • > 100/20 [Enter] • > (12 + 34 -56) * 78 / 90 [Enter] Saturday, July 16, 2011 37
  • 38. • > 100^1/2 • > 100^(1/2) Saturday, July 16, 2011 38
  • 42. “I don't know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/ Saturday, July 16, 2011 42
  • 44. sqrt() •> sqrt(2) • > sqrt(144) •> sqrt(104976) •[ ]2 • 2 3 1 • > 2^(1/3) Saturday, July 16, 2011 44
  • 45. ( ) • R • q() help(xxx) • Saturday, July 16, 2011 45
  • 51. “I don't know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/ Saturday, July 16, 2011 51
  • 53. “hako” • > hako <- c(1,2,3,4,5) • > hako • c() concatenate/combine • Saturday, July 16, 2011 53
  • 54. c() “<-” hako <- c(1,2,3,4,5) “<-” ← Saturday, July 16, 2011 54
  • 55. + ... • [Enter] • [STOP] • [Esc] Saturday, July 16, 2011 55
  • 56. hako 1 5 5 Saturday, July 16, 2011 56
  • 58. > sqrt(hako) • > log(hako) Saturday, July 16, 2011 58
  • 59. sqrt(1), sqrt(2) ... sqrt(5) log(1), log (2) ... log (5) Saturday, July 16, 2011 59
  • 62. summary() • table() • sum() • length() Saturday, July 16, 2011 62
  • 63. mean() • max(), min() • median() • sd() Saturday, July 16, 2011 63
  • 64. R • • q(), help(), sqrt(), log(), c() • Saturday, July 16, 2011 64
  • 66. Agenda 1. R 2. 3. Saturday, July 16, 2011 66
  • 67. Agenda 1. R 2. 3. Saturday, July 16, 2011 67
  • 70. 1. 2. Saturday, July 16, 2011 70
  • 71. 2 Excel SPSS ... orz Saturday, July 16, 2011 71
  • 73. > height <- c(160, 160, 160, 165, 170, 170, 170, 170, 175, 175, 180, 185, 185, 185, 190) > hist(height) Saturday, July 16, 2011 73
  • 75. > score <- c(600, 500, 720, 430, 500, 550, 430, 500, 850, 400) > words <- c(340, 190, 465, 170, 130, 225,140, 310, 580, 120) > plot(score,words) Saturday, July 16, 2011 75
  • 77. > nns <- c(350, 285, 315, 340, 210, 185, 120, 740, 425, 155) > ns <- c(365, 570, 645, 540, 645, 665, 880, 550, 410, 585) > boxplot(nns,ns, names=c("NNS", "NS")) Saturday, July 16, 2011 77
  • 79. > share <- c(32.4, 21.0, 8.3, 4.1, 3.6,30.5) > names(share) <- c("NOKIA", "SAMSUNG", "LG", "Apple", "RIM", "Others") > pie(share,main="Mobile Phone Market Share", clockwise=TRUE) Saturday, July 16, 2011 79
  • 80. 1. 2. Saturday, July 16, 2011 80
  • 81. Excel “y2.d175 | Lasershow! Relax!” by B Rosen http://www.flickr.com/photos/rosengrant/4751386872/ Saturday, July 16, 2011 81