Your SlideShare is downloading. ×
0
Hi                           oshima.                          2011-06-17 HiRoshima.R #1@Saturday, June 18, 2011           ...
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                        ...
Saturday, June 18, 2011   5
•         IBM SPSS Statistics   10                •                •Saturday, June 18, 2011                              6
•                          •                •                          •   PCSaturday, June 18, 2011            7
Excel          SPSS         ...             •                 IBM SPSS Statistics   10             •                      ...
Excel                          SPSSSaturday, June 18, 2011           9
—Install / Update / Uninstall—Saturday, June 18, 2011                   10
1. http://www.r-project.org/              2. “download R”              3. JAPAN              4.                  OSSaturda...
• Windows: http://cran.md.tsukuba.ac.jp/bin/windows/base/                • Download R 2.13.0 for Windows      • Mac       ...
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...
• Windows                • START → Program → R → R 2.13.0          • Mac OS X                          /Applications   R  ...
• Windows            Mac OS X                 1.       q()                 2.                 3.                  RSaturda...
•                     •                             Win                          • [ ]→[GUI           ]                   ...
•         help(XXX) !!            • seekR       (http://seekr.jp/)            • R SEEK         (http://www.rseek.org/)    ...
•       R                   •             •                           q()             •            help(XXX) !!Saturday, J...
Excel                          SPSSSaturday, 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]         ...
•                          •   > 100^1/2                          •   > 100^(1/2)Saturday, June 18, 2011                  ...
Saturday, June 18, 2011   38
RSaturday, June 18, 2011       39
Saturday, June 18, 2011   40
“I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/Saturday, June 18, 2011                         ...
Saturday, June 18, 2011   42
sqrt()                     • > sqrt(2)                     • > sqrt(144)                     • > sqrt(104976)             ...
(   )       •       R       • q()              help(xxx)       •Saturday, June 18, 2011               44
RSaturday, June 18, 2011       45
Saturday, June 18, 2011   46
RSaturday, June 18, 2011       47
Saturday, June 18, 2011   48
Saturday, June 18, 2011   49
“I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/Saturday, June 18, 2011                         ...
Saturday, June 18, 2011   51
“hako”     •         > hako <- c(1,2,3,4,5)     •         > hako                 •        c()   concatenate/combine       ...
c()              “<-”                          hako <- c(1,2,3,4,5)                     <-Saturday, June 18, 2011         ...
hako                 1        5          5Saturday, 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                 ...
Saturday, June 18, 2011   58
Saturday, June 18, 2011   59
•                     summary()              •                   table()              •           sum()              •    ...
•               mean()          •                          max(), min()          •               median()          •      ...
•       R              •                          •   q(), help(), sqrt(), log(), c()              •Saturday, June 18, 201...
OKSaturday, 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                                      ... orzSaturday, June 18, 2011           ...
Saturday, June 18, 2011   70
> height <- c(160, 160, 160,                    165, 170, 170, 170, 170, 175,                    175, 180, 185, 185, 185, ...
TOEICSaturday, June 18, 2011           72
> score <- c(600, 500, 720, 430,                 500, 550, 430, 500, 850, 400)                 > words <- c(340, 190, 465,...
Saturday, June 18, 2011   74
> nns <- c(350, 285, 315, 340, 210,             185, 120, 740, 425, 155)             > ns <- c(365, 570, 645, 540, 645,   ...
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", "Appl...
1.                   2.Saturday, June 18, 2011   78
R           Excel                              “y2.d175 | Lasershow! Relax!” by B Rosen                              http:...
Upcoming SlideShare
Loading in...5
×

HiRoshima.R #1 1-2

1,235

Published on

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

  • Be the first to like this

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

No notes for slide

Transcript of "HiRoshima.R #1 1-2"

  1. 1. Hi oshima. 2011-06-17 HiRoshima.R #1@Saturday, June 18, 2011 1
  2. 2. Agenda 1. R 2. 3.Saturday, June 18, 2011 2
  3. 3. Agenda 1. R 2. 3.Saturday, June 18, 2011 3
  4. 4. • • Ross Ihaka & Robert Gentleman (R & R) •Saturday, June 18, 2011 4
  5. 5. Saturday, June 18, 2011 5
  6. 6. • IBM SPSS Statistics 10 • •Saturday, June 18, 2011 6
  7. 7. • • • • PCSaturday, June 18, 2011 7
  8. 8. Excel SPSS ... • IBM SPSS Statistics 10 • • Excel •Saturday, June 18, 2011 8
  9. 9. Excel SPSSSaturday, June 18, 2011 9
  10. 10. —Install / Update / Uninstall—Saturday, June 18, 2011 10
  11. 11. 1. http://www.r-project.org/ 2. “download R” 3. JAPAN 4. OSSaturday, June 18, 2011 11
  12. 12. • 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
  13. 13. Saturday, June 18, 2011 13
  14. 14. Saturday, June 18, 2011 14
  15. 15. Saturday, June 18, 2011 15
  16. 16. Saturday, June 18, 2011 16
  17. 17. Saturday, June 18, 2011 17
  18. 18. Saturday, June 18, 2011 18
  19. 19. Saturday, June 18, 2011 19
  20. 20. Saturday, June 18, 2011 20
  21. 21. Saturday, June 18, 2011 21
  22. 22. Saturday, June 18, 2011 22
  23. 23. Saturday, June 18, 2011 23
  24. 24. Saturday, June 18, 2011 24
  25. 25. 1. http://www.r-project.org/ 2. 3.Saturday, June 18, 2011 25
  26. 26. • Windows • START → Program → R → Uninstall R • Mac OS X /Applications R /Library/Frameworks R. frameworkSaturday, June 18, 2011 26
  27. 27. • Windows • START → Program → R → R 2.13.0 • Mac OS X /Applications R RSaturday, June 18, 2011 27
  28. 28. • Windows Mac OS X 1. q() 2. 3. RSaturday, June 18, 2011 28
  29. 29. • • Win • [ ]→[GUI ] • Font [MS Mincho]Saturday, June 18, 2011 29
  30. 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, June 18, 2011 30
  31. 31. • R • • q() • help(XXX) !!Saturday, June 18, 2011 31
  32. 32. Excel SPSSSaturday, June 18, 2011 32
  33. 33. Agenda 1. R 2. 3.Saturday, June 18, 2011 33
  34. 34. Agenda 1. R 2. 3.Saturday, June 18, 2011 34
  35. 35. Saturday, June 18, 2011 35
  36. 36. • [Enter] • > 3+5 [Enter] • > 10-3 [Enter] • > 2*3 [Enter] • > 100/20 [Enter] • > (12 + 34 -56) * 78 / 90 [Enter]Saturday, June 18, 2011 36
  37. 37. • • > 100^1/2 • > 100^(1/2)Saturday, June 18, 2011 37
  38. 38. Saturday, June 18, 2011 38
  39. 39. RSaturday, June 18, 2011 39
  40. 40. Saturday, June 18, 2011 40
  41. 41. “I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/Saturday, June 18, 2011 41
  42. 42. Saturday, June 18, 2011 42
  43. 43. sqrt() • > sqrt(2) • > sqrt(144) • > sqrt(104976) •[ ]2 • 2 3 1 • > 2^(1/3)Saturday, June 18, 2011 43
  44. 44. ( ) • R • q() help(xxx) •Saturday, June 18, 2011 44
  45. 45. RSaturday, June 18, 2011 45
  46. 46. Saturday, June 18, 2011 46
  47. 47. RSaturday, June 18, 2011 47
  48. 48. Saturday, June 18, 2011 48
  49. 49. Saturday, June 18, 2011 49
  50. 50. “I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/Saturday, June 18, 2011 50
  51. 51. Saturday, June 18, 2011 51
  52. 52. “hako” • > hako <- c(1,2,3,4,5) • > hako • c() concatenate/combine •Saturday, June 18, 2011 52
  53. 53. c() “<-” hako <- c(1,2,3,4,5) <-Saturday, June 18, 2011 53
  54. 54. hako 1 5 5Saturday, June 18, 2011 54
  55. 55. Saturday, June 18, 2011 55
  56. 56. • > sqrt(hako) • > log(hako)Saturday, June 18, 2011 56
  57. 57. sqrt(1), sqrt(2) ... sqrt(5) log(1), log (2) ... log (5)Saturday, June 18, 2011 57
  58. 58. Saturday, June 18, 2011 58
  59. 59. Saturday, June 18, 2011 59
  60. 60. • summary() • table() • sum() • length()Saturday, June 18, 2011 60
  61. 61. • mean() • max(), min() • median() • sd()Saturday, June 18, 2011 61
  62. 62. • R • • q(), help(), sqrt(), log(), c() •Saturday, June 18, 2011 62
  63. 63. OKSaturday, June 18, 2011 63
  64. 64. Agenda 1. R 2. 3.Saturday, June 18, 2011 64
  65. 65. Agenda 1. R 2. 3.Saturday, June 18, 2011 65
  66. 66. Saturday, June 18, 2011 66
  67. 67. Saturday, June 18, 2011 67
  68. 68. 1. 2.Saturday, June 18, 2011 68
  69. 69. 2 Excel SPSS ... orzSaturday, June 18, 2011 69
  70. 70. Saturday, June 18, 2011 70
  71. 71. > height <- c(160, 160, 160, 165, 170, 170, 170, 170, 175, 175, 180, 185, 185, 185, 190) > hist(height)Saturday, June 18, 2011 71
  72. 72. TOEICSaturday, June 18, 2011 72
  73. 73. > 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
  74. 74. Saturday, June 18, 2011 74
  75. 75. > 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
  76. 76. Saturday, June 18, 2011 76
  77. 77. > 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
  78. 78. 1. 2.Saturday, June 18, 2011 78
  79. 79. R Excel “y2.d175 | Lasershow! Relax!” by B Rosen http://www.flickr.com/photos/rosengrant/4751386872/Saturday, June 18, 2011 79
  1. A particular slide catching your eye?

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

×