• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Japan.R 1-2

on

  • 1,568 views

第1回 Japan.R 1-2 の資料。

第1回 Japan.R 1-2 の資料。

Statistics

Views

Total Views
1,568
Views on SlideShare
1,545
Embed Views
23

Actions

Likes
4
Downloads
24
Comments
0

1 Embed 23

http://d.hatena.ne.jp 23

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Japan.R 1-2 Japan.R 1-2 Presentation Transcript

  • Japan.R ― 1-2― id:sakaue, @sakaue
  • Agenda1. R2.3.4.
  • Agenda1. R2.3.4.
  • • [Enter] • > 3+5 [Enter] • > 10-3 [Enter] • > 2*3 [Enter] • > 100/20 [Enter] • > (12 + 34 -56) * 78 / 90 [Enter]
  • •• > 100^1/2• > 100^(1/2)
  • R
  • “I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/
  • sqrt()• > sqrt(2)• > sqrt(144)• > sqrt(104976)•[ ]2
  • sqrt()• > sqrt(2)• > sqrt(144)• > sqrt(104976)•[ ]2 • 2 3 1 • > 2^(1/3)
  • ( )•R• q() help(xxx)•
  • R
  • R
  • “I dont know !” by fmgbain http://www.flickr.com/photos/fmgbain/4382010455/
  • “hako”• > hako <- c(1,2,3,4,5)• > hako • c() concatenate •
  • c() “<-” hako <- c(1,2,3,4,5)<-
  • hako1 5 5
  • •> sqrt(hako)• > log(hako)
  • sqrt(1), sqrt(2) ... sqrt(5) log(1), log (2) ... log (5)
  • • summary()• table()• sum()• length()
  • • mean()• max(), min()• median()• sd()
  • • R• • q(), help(), sqrt(), log(), c()•
  • OK
  • Agenda1. R2.3.4.
  • Agenda1. R2.3.4.
  • ...••• TOEIC
  • ...A 180 75B 170 65C 165 60D 175 70E 190 80
  • R
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • 1 2 34 5 67 8 9
  • matrix()
  • matrix()•• matrix( , , )•
  • A 180 75B 170 65C 165 60D 175 70E 190 80
  • karada <- matrix(c(180, 170, 165,175, 190, 75, 65, 60, 70, 80), 5, 2)1. c()2. matrix() • 5 23. karada
  • > karada
  • matrix(1:9,nrow=3,ncol=3) 1 4 7 2 5 8 3 6 9
  • matrix(1:9,nrow=3,ncol=3,byrow=TRUE) 1 2 3 4 5 6 7 8 9
  • 1.2.
  • demo <- matrix(1:30,nrow=5,ncol=6) http://gyazo.com/76c58d5d6c8426a44f160897cda99671.png
  • 2 → demo[2,] 2 → demo[,2]http://gyazo.com/6726084afd9e1cc4b03df85fe6bc0f29.png
  • 2 4 → demo[c(2,4),]2 4 → demo[, c(2,4)]
  • http://gyazo.com/a116c0e2f1284ea7d38bf7024d92f1cc.png
  • • !••
  • Agenda1. R2.3.4.
  • Agenda1. R2.3.4.
  • • • •
  • B 175 65B 177 70B 174 75A 179 70O 170 60
  • • Excel WS••
  • ...• data.frame() (p.240)• (p.243)• (p.243)
  • ...
  • “173.365 - Come on, feel the noise” by Jeff the Trojan http://www.flickr.com/photos/trojanguy/3046207115/
  • Agenda1. R2.3.4.
  • Agenda1. R2.3.4.
  • ...• Excel / OOo•
  • • ... • •
  • • Windows → • “MyDocuments”• Mac OS →• Linux up to you...
  • • • getwd() • > getwd() • setwd() • > setwd("/Users/sakaue/Desktop/")
  • • read.csv() • CSV • CSV: Comma Separated Value
  • 1. sample.csv • XLS/XLSX2. > demo2 <- read.csv(“japanr1_2_sample.csv”)3. > demo2 [Enter]
  • !!• > table(demo2[,2]) •• > mean(demo2[,3]) •• > hist(demo2[,4]) •
  • •• CSV read.csv()• or
  • CSV Excel “y2.d175 | Lasershow! Relax!” by B Rosen http://www.flickr.com/photos/rosengrant/4751386872/