R
      —                                      —


                               Nagoya.R #1
                            ...
•                                    (         )

     •
     •                     R     R
           •                  ...
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, ...
Excel          SPSS         ...

             •                  IBM SPSS Statistics   10


             •
               ...
R   R



Saturday, March 27, 2010
R

              1. http://www.r-project.org/
              2. “download R”
              3. JAPAN
              4.       ...
R
                           Windows: http://cran.md.tsukuba.ac.jp/bin/windows/base/
                              ■    Do...
R
                   1. http://www.r-project.org/
                   2.

                   3.


Saturday, March 27, 2010
R
          • Windows
                • START → Program → R → Uninstall R
          • Mac OS X
                      /Appl...
R
          • Windows
                • START → Program → R → R 2.10.1
          • Mac OS X
                       /Applic...
R

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

              •
              •                                    Win

                    • [ ]→[GUI                 ...
R

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


       ...
1. R

             •      R
                   •
             •                                   q()

             •     ...
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]
  ...
•
                           •   > 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)
            ...
(   )

       •       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
 ...
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
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()

          ...
•                mean()

          •                           max(), min()

          •                median()

        ...
...



Saturday, March 27, 2010
10   TOEIC

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



Saturday, ...
OK

Saturday, March 27, 2010
10   TOEIC


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



Saturday,...
•      > score <- c(600,500,720,430,500,
                      550,430,500,850,400)
      •      > summary(score)
      • ...
Saturday, March 27, 2010
Upcoming SlideShare
Loading in...5
×

Nagoya.R #1 Part 1

1,077

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,077
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Nagoya.R #1 Part 1

  1. 1. R — — Nagoya.R #1 2010-03-26 Saturday, March 27, 2010
  2. 2. • ( ) • • R R • Nagoya.R ... Saturday, March 27, 2010
  3. 3. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  4. 4. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  5. 5. R • • Ross Ihaka & Robert Gentleman (R & R) • Saturday, March 27, 2010
  6. 6. R Saturday, March 27, 2010
  7. 7. R • IBM SPSS Statistics 10 • • Saturday, March 27, 2010
  8. 8. R • • • • PC Saturday, March 27, 2010
  9. 9. Excel SPSS ... • IBM SPSS Statistics 10 • • Excel • Saturday, March 27, 2010
  10. 10. R R Saturday, March 27, 2010
  11. 11. R 1. http://www.r-project.org/ 2. “download R” 3. JAPAN 4. OS Saturday, March 27, 2010
  12. 12. 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
  13. 13. R 1. http://www.r-project.org/ 2. 3. Saturday, March 27, 2010
  14. 14. R • Windows • START → Program → R → Uninstall R • Mac OS X /Applications R /Library/Frameworks R. framework Saturday, March 27, 2010
  15. 15. R • Windows • START → Program → R → R 2.10.1 • Mac OS X /Applications R R Saturday, March 27, 2010
  16. 16. R • Windows Mac OS X 1. q() 2. 3. R Saturday, March 27, 2010
  17. 17. R • • Win • [ ]→[GUI ] • Font [MS Mincho] [MS Gothic] Saturday, March 27, 2010
  18. 18. 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
  19. 19. 1. R • R • • q() • help(XXX) !! Saturday, March 27, 2010
  20. 20. 1. R R R Saturday, March 27, 2010
  21. 21. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  22. 22. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  23. 23. Saturday, March 27, 2010
  24. 24. • [Enter] • > 3+5 [Enter] • > 10-3 [Enter] • > 2*3 [Enter] • > 100/20 [Enter] • > (12 + 34 -56) * 78 / 90 [Enter] Saturday, March 27, 2010
  25. 25. • • > 100^1/2 • > 100^(1/2) Saturday, March 27, 2010
  26. 26. Saturday, March 27, 2010
  27. 27. R Saturday, March 27, 2010
  28. 28. Saturday, March 27, 2010
  29. 29. Saturday, March 27, 2010
  30. 30. Saturday, March 27, 2010
  31. 31. sqrt() • > sqrt(2) • > sqrt(144) • > sqrt(104976) •[ ]2 • 2 3 1 • > 2^(1/3) Saturday, March 27, 2010
  32. 32. ( ) • R • q() help(xxx) • Saturday, March 27, 2010
  33. 33. R Saturday, March 27, 2010
  34. 34. Saturday, March 27, 2010
  35. 35. R Saturday, March 27, 2010
  36. 36. Saturday, March 27, 2010
  37. 37. Saturday, March 27, 2010
  38. 38. Saturday, March 27, 2010
  39. 39. Saturday, March 27, 2010
  40. 40. “hako” • > hako <- c(1,2,3,4,5) • > hako • c() concatenate • Saturday, March 27, 2010
  41. 41. hako 1 5 5 Saturday, March 27, 2010
  42. 42. Saturday, March 27, 2010
  43. 43. • > sqrt(hako) • > log(hako) Saturday, March 27, 2010
  44. 44. sqrt(1), sqrt(2) ... sqrt(5) log(1), log (2) ... log (5) Saturday, March 27, 2010
  45. 45. Saturday, March 27, 2010
  46. 46. 2. R • R • • q(), help(), sqrt(), log(), c() • Saturday, March 27, 2010
  47. 47. ... Saturday, March 27, 2010
  48. 48. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  49. 49. Agenda 1. R 2. R 3. Saturday, March 27, 2010
  50. 50. ... Saturday, March 27, 2010
  51. 51. Saturday, March 27, 2010
  52. 52. • • • • Saturday, March 27, 2010
  53. 53. Saturday, March 27, 2010
  54. 54. Saturday, March 27, 2010
  55. 55. Saturday, March 27, 2010
  56. 56. Saturday, March 27, 2010
  57. 57. Saturday, March 27, 2010
  58. 58. Saturday, March 27, 2010
  59. 59. (15,000) Saturday, March 27, 2010
  60. 60. (300) Saturday, March 27, 2010
  61. 61. Saturday, March 27, 2010
  62. 62. Saturday, March 27, 2010
  63. 63. Saturday, March 27, 2010
  64. 64. Saturday, March 27, 2010
  65. 65. Saturday, March 27, 2010
  66. 66. Saturday, March 27, 2010
  67. 67. Saturday, March 27, 2010
  68. 68. Saturday, March 27, 2010
  69. 69. Saturday, March 27, 2010
  70. 70. ※ Nagoya.R #2 Saturday, March 27, 2010
  71. 71. Saturday, March 27, 2010
  72. 72. Saturday, March 27, 2010
  73. 73. Saturday, March 27, 2010
  74. 74. Saturday, March 27, 2010
  75. 75. • • • Saturday, March 27, 2010
  76. 76. • ÷ • • Saturday, March 27, 2010
  77. 77. • • Saturday, March 27, 2010
  78. 78. ... Saturday, March 27, 2010
  79. 79. Saturday, March 27, 2010
  80. 80. ... Saturday, March 27, 2010
  81. 81. Saturday, March 27, 2010
  82. 82. • • • etc. Saturday, March 27, 2010
  83. 83. R Saturday, March 27, 2010
  84. 84. • summary() • table() • sum() • length() Saturday, March 27, 2010
  85. 85. • mean() • max(), min() • median() • sd() Saturday, March 27, 2010
  86. 86. ... Saturday, March 27, 2010
  87. 87. 10 TOEIC 600, 500, 720, 430, 500, 550, 430, 500, 850, 400 1. “score” 2. Saturday, March 27, 2010
  88. 88. OK Saturday, March 27, 2010
  89. 89. 10 TOEIC 600, 500, 720, 430, 500, 550, 430, 500, 850, 400 1. “score” 2. Saturday, March 27, 2010
  90. 90. • > 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
  91. 91. Saturday, March 27, 2010
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×