SlideShare une entreprise Scribd logo
1  sur  79
Télécharger pour lire hors ligne
Hi                           oshima.


                          2011-06-17 HiRoshima.R #1@



Saturday, June 18, 2011                                1
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            2
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            3
•
          •               Ross Ihaka & Robert Gentleman (R & R)

          •


Saturday, June 18, 2011                                           4
Saturday, June 18, 2011   5
•         IBM SPSS Statistics   10


                •
                •
Saturday, June 18, 2011                              6
•
                          •
                •
                          •   PC


Saturday, June 18, 2011            7
Excel          SPSS         ...

             •                 IBM SPSS Statistics   10


             •
                          • Excel
             •
Saturday, June 18, 2011                                     8
Excel
                          SPSS
Saturday, June 18, 2011           9
—Install / Update / Uninstall—



Saturday, June 18, 2011                   10
1. http://www.r-project.org/
              2. “download R”
              3. JAPAN
              4.                  OS


Saturday, June 18, 2011                      11
• 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, June 18, 2011                                                      12
Saturday, June 18, 2011   13
Saturday, June 18, 2011   14
Saturday, June 18, 2011   15
Saturday, June 18, 2011   16
Saturday, June 18, 2011   17
Saturday, June 18, 2011   18
Saturday, June 18, 2011   19
Saturday, June 18, 2011   20
Saturday, June 18, 2011   21
Saturday, June 18, 2011   22
Saturday, June 18, 2011   23
Saturday, June 18, 2011   24
1. http://www.r-project.org/
                   2.

                   3.


Saturday, June 18, 2011                           25
• Windows
                 • START → Program → R → Uninstall R
           • Mac OS X
                      /Applications    R
                      /Library/Frameworks   R. framework



Saturday, June 18, 2011                                    26
• Windows
                • START → Program → R → R 2.13.0
          • Mac OS X
                          /Applications   R


                                R


Saturday, June 18, 2011                            27
• Windows            Mac OS X
                 1.       q()
                 2.
                 3.                  R


Saturday, June 18, 2011                    28
•
                     •                             Win

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

Saturday, June 18, 2011                                  29
•         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, June 18, 2011                                                                     30
•       R
                   •
             •                           q()

             •            help(XXX) !!

Saturday, June 18, 2011                        31
Excel
                          SPSS
Saturday, June 18, 2011           32
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            33
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            34
Saturday, June 18, 2011   35
•                      [Enter]
                          • > 3+5 [Enter]
                          • > 10-3 [Enter]
                          • > 2*3 [Enter]
                          • > 100/20 [Enter]
                          • > (12 + 34 -56) * 78 / 90 [Enter]
Saturday, June 18, 2011                                         36
•
                          •   > 100^1/2
                          •   > 100^(1/2)
Saturday, June 18, 2011                     37
Saturday, June 18, 2011   38
R




Saturday, June 18, 2011       39
Saturday, June 18, 2011   40
“I don't know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/
Saturday, June 18, 2011                                                                             41
Saturday, June 18, 2011   42
sqrt()
                     • > sqrt(2)
                     • > sqrt(144)
                     • > sqrt(104976)
                     •[    ]2

                          • 2 3         1
                          • > 2^(1/3)
Saturday, June 18, 2011                     43
(   )

       •       R

       • q()              help(xxx)

       •
Saturday, June 18, 2011               44
R




Saturday, June 18, 2011       45
Saturday, June 18, 2011   46
R




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

     •         > hako <- c(1,2,3,4,5)
     •         > hako
                 •        c()   concatenate/combine
                 •
Saturday, June 18, 2011                               52
c()              “<-”


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


Saturday, June 18, 2011                          53
hako


                 1        5          5



Saturday, June 18, 2011                  54
Saturday, June 18, 2011   55
•    > sqrt(hako)

                     • > log(hako)

Saturday, June 18, 2011                  56
sqrt(1), sqrt(2) ... sqrt(5)
                           log(1), log (2) ... log (5)

Saturday, June 18, 2011                                  57
Saturday, June 18, 2011   58
Saturday, June 18, 2011   59
•                     summary()

              •                   table()

              •           sum()

              •                        length()

Saturday, June 18, 2011                           60
•               mean()

          •                          max(), min()

          •               median()

          •                 sd()


Saturday, June 18, 2011                             61
•       R

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

              •
Saturday, June 18, 2011                                         62
OK

Saturday, June 18, 2011        63
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            64
Agenda
                1. R
                2.
                3.

Saturday, June 18, 2011            65
Saturday, June 18, 2011   66
Saturday, June 18, 2011   67
1.
                   2.



Saturday, June 18, 2011   68
2

                          Excel       SPSS
                                      ... orz
Saturday, June 18, 2011                         69
Saturday, June 18, 2011   70
> height <- c(160, 160, 160,
                    165, 170, 170, 170, 170, 175,
                    175, 180, 185, 185, 185, 190)
                    > hist(height)

Saturday, June 18, 2011                             71
TOEIC




Saturday, June 18, 2011           72
> 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, June 18, 2011                             73
Saturday, June 18, 2011   74
> 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, June 18, 2011                                75
Saturday, June 18, 2011   76
> 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, June 18, 2011                                      77
1.

                   2.




Saturday, June 18, 2011   78
R


           Excel
                              “y2.d175 | Lasershow! Relax!” by B Rosen
                              http://www.flickr.com/photos/rosengrant/4751386872/
Saturday, June 18, 2011                                                       79

Contenu connexe

Similaire à HiRoshima.R #1 1-2 (6)

HiRoshima.R #1 1-3 LT
HiRoshima.R #1 1-3 LTHiRoshima.R #1 1-3 LT
HiRoshima.R #1 1-3 LT
 
Methoken.R
Methoken.RMethoken.R
Methoken.R
 
Osaka.R #6 LT
Osaka.R #6 LTOsaka.R #6 LT
Osaka.R #6 LT
 
3.7 notes
3.7 notes3.7 notes
3.7 notes
 
RailsConf 2011 Keynote
RailsConf 2011 KeynoteRailsConf 2011 Keynote
RailsConf 2011 Keynote
 
开放式类库的构建
开放式类库的构建开放式类库的构建
开放式类库的构建
 

Plus 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
 
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
SAKAUE, Tatsuya
 

Plus de SAKAUE, Tatsuya (20)

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 入門者講習資料
 
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
「R による英語コーパスの処理入門―接続詞 and/but の使用実態調査を例に―」Computing Language and Culture with...
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

HiRoshima.R #1 1-2