SlideShare una empresa de Scribd logo
1 de 91
Descargar para leer sin conexión
R
      —                                      —


                               Nagoya.R #1
                               2010-03-26

Saturday, March 27, 2010
•                                    (         )

     •
     •                     R     R
           •                   Nagoya.R       ...

Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
R

         •
         •                 Ross Ihaka & Robert Gentleman (R & R)

         •


Saturday, March 27, 2010
R
Saturday, March 27, 2010
R

               •               IBM SPSS Statistics   10


               •
               •
Saturday, March 27, 2010
R

               •
                           •
               •
                           •   PC


Saturday, March 27, 2010
Excel          SPSS         ...

             •                  IBM SPSS Statistics   10


             •
                           • Excel
             •
Saturday, March 27, 2010
R   R



Saturday, March 27, 2010
R

              1. http://www.r-project.org/
              2. “download R”
              3. JAPAN
              4.                  OS


Saturday, March 27, 2010
R
                           Windows: http://cran.md.tsukuba.ac.jp/bin/windows/base/
                              ■    Download R 2.10.1 for Windows



                   ■ Mac OS X: http://cran.md.tsukuba.ac.jp/bin/macosx/
                             R-2.10.1.pkg (latest version)




Saturday, March 27, 2010
R
                   1. http://www.r-project.org/
                   2.

                   3.


Saturday, March 27, 2010
R
          • Windows
                • START → Program → R → Uninstall R
          • Mac OS X
                      /Applications    R
                      /Library/Frameworks   R. framework



Saturday, March 27, 2010
R
          • Windows
                • START → Program → R → R 2.10.1
          • Mac OS X
                       /Applications   R


                             R


Saturday, March 27, 2010
R

          • Windows                  Mac OS X
                1.         q()
                2.
                3.                        R


Saturday, March 27, 2010
R

              •
              •                                    Win

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



Saturday, March 27, 2010
R

                 •               help(XXX) !!
                 • 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, March 27, 2010
1. R

             •      R
                   •
             •                                   q()

             •                    help(XXX) !!

Saturday, March 27, 2010
1. R




                             R    R
Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
Saturday, March 27, 2010
•                        [Enter]
                           • > 3+5 [Enter]
                           • > 10-3 [Enter]
                           • > 2*3 [Enter]
                           • > 100/20 [Enter]
                           • > (12 + 34 -56) * 78 / 90 [Enter]
Saturday, March 27, 2010
•
                           •   > 100^1/2
                           •   > 100^(1/2)
Saturday, March 27, 2010
Saturday, March 27, 2010
R




Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
sqrt()
                    • > sqrt(2)
                    • > sqrt(144)
                    • > sqrt(104976)
                    •[      ]2

                           • 2 3         1
                           • > 2^(1/3)
Saturday, March 27, 2010
(   )

       •       R

       • q()               help(xxx)

       •
Saturday, March 27, 2010
R




Saturday, March 27, 2010
Saturday, March 27, 2010
R




Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
“hako”

         •         > hako <- c(1,2,3,4,5)
         •         > hako
                     •     c()   concatenate
                     •
Saturday, March 27, 2010
hako


                 1         5          5



Saturday, March 27, 2010
Saturday, March 27, 2010
•      > sqrt(hako)

                    • > log(hako)

Saturday, March 27, 2010
sqrt(1), sqrt(2) ... sqrt(5)
                            log(1), log (2) ... log (5)

Saturday, March 27, 2010
Saturday, March 27, 2010
2. R
              •       R

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

              •
Saturday, March 27, 2010
...

Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
Agenda
                    1. R
                    2. R
                    3.
Saturday, March 27, 2010
...

Saturday, March 27, 2010
Saturday, March 27, 2010
•
                    •
                    •
                    •
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
(15,000)

Saturday, March 27, 2010
(300)
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
※ Nagoya.R #2

Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
Saturday, March 27, 2010
•
                    •
                    •
Saturday, March 27, 2010
•                     ÷


     •
     •
Saturday, March 27, 2010
•
•
Saturday, March 27, 2010
...



Saturday, March 27, 2010
Saturday, March 27, 2010
...



Saturday, March 27, 2010
Saturday, March 27, 2010
•
              •
                           •   etc.



Saturday, March 27, 2010
R


Saturday, March 27, 2010
•                      summary()

              •                    table()

              •            sum()

              •                         length()

Saturday, March 27, 2010
•                mean()

          •                           max(), min()

          •                median()

          •                  sd()


Saturday, March 27, 2010
...



Saturday, March 27, 2010
10   TOEIC

          600, 500, 720, 430, 500,
          550, 430, 500, 850, 400
       1. “score”
       2.



Saturday, March 27, 2010
OK

Saturday, March 27, 2010
10   TOEIC


          600, 500, 720, 430, 500,
          550, 430, 500, 850, 400
       1. “score”
       2.



Saturday, March 27, 2010
•      > score <- c(600,500,720,430,500,
                      550,430,500,850,400)
      •      > summary(score)
      •      > mean(score)
      •      > max(score)
      •      > min(score)
      •      > median(score)
      •      > sd(score)
Saturday, March 27, 2010
Saturday, March 27, 2010

Más contenido relacionado

Más de SAKAUE, Tatsuya

MethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpusMethokenOkinawa_Sakaue_LearnerCorpus
MethokenOkinawa_Sakaue_LearnerCorpus
SAKAUE, Tatsuya
 
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
Nagoya.R #10 LT 「グラフはベクタ(ベクトル)画像で出力しようじゃありませんか」
SAKAUE, Tatsuya
 
LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」LET2012 ワークショップ「R による教育・言語データ処理のススメ」
LET2012 ワークショップ「R による教育・言語データ処理のススメ」
SAKAUE, Tatsuya
 
授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用授業外で個別学習を促進するためのポッドキャスト利用
授業外で個別学習を促進するためのポッドキャスト利用
SAKAUE, Tatsuya
 

Más de 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 入門者講習資料
 

Último

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
QucHHunhnh
 
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
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
 

Último (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).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
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
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
 
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...
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 

Nagoya.R #1 Part 1