Your SlideShare is downloading. ×
Nagoya.R #1 Part 1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Nagoya.R #1 Part 1

1,053
views

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,053
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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