Tokyo r18
Upcoming SlideShare
Loading in...5
×
 

Tokyo r18

on

  • 11,605 views

TokyoR #18

TokyoR #18
初めてのR

Statistics

Views

Total Views
11,605
Views on SlideShare
2,894
Embed Views
8,711

Actions

Likes
8
Downloads
49
Comments
0

17 Embeds 8,711

http://d.hatena.ne.jp 7428
http://codeiq.hatenablog.com 992
https://twitter.com 81
http://hatenatunnel.appspot.com 81
http://yut.hatenablog.com 58
http://webcache.googleusercontent.com 44
http://cache.yahoofs.jp 6
http://paper.li 6
https://twimg0-a.akamaihd.net 4
http://a0.twimg.com 3
http://www.google.co.jp 2
http://wakuteka.info 1
http://www.example.com&_=1349075305880 HTTP 1
http://translate.googleusercontent.com 1
http://us-w1.rockmelt.com 1
https://www.google.co.jp 1
http://www.slideshare.net 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

Tokyo r18 Tokyo r18 Presentation Transcript

  • TOKYO.R #18
  • 1. 2. 3.  R i.  ii.  iii.  demo()) iv.  v.  vi.  vii.  fucntion) viii. 4. 5.  Mac Windows
  • •  :•  Twitter :aad34210•  :http://pracmper.blogspot.com/•  :•  :•  : Web
  • •  R•  R• 
  • R• •  R …
  • • •  … TokyoR Amazon (¥3,990)
  • R - •  R http://www.r-project.org/
  • R - •  R
  • R - •  … R command + enter
  • R - quit() R R•  R•  R
  • R - •  iris•  R demo() demo(graphics)
  • R - •  Retern
  • R - • •  “Iris” iris head(iris , 10) tail(iris , 10)
  • R - •  • Iris$Sepal.Length Iris[,1] | iris[1,1] head(iris[,1] , 10) Iris[ , ] Iris
  • R – • •  R•  apply apply , , •  apply(iris[1:4] , 2 , sum)   •  apply(iris[1:4] , 2 , mean)   •  apply(iris[1:4] , 2 , sd)   •  apply(iris[1:4] , 2 ,quantile)  
  • R – • •  R•  apply apply , , •  apply(iris[1:4] , 2 , sum)   •  apply(iris[1:4] , 2 , mean)   •  apply(iris[1:4] , 2 , sd)   •  apply(iris[1:4] , 2 ,quantile)  
  • R – • •  tapply() tapply , , •  tapply(iris[,1] , iris[,5] , sum)   •  tapply(iris[,1] , iris[,5] , mean)   •  tapply(iris[,1] , iris[,5] , sd)   •  tapply(iris[,1] , iris[,5] , quantile)  
  • R – •  aggregate()•  aggregate( , , ) •  aggregate(iris[,1:4] , list(name = iris$Species) , sum)   •  aggregate(iris[,1:4] , list(name = iris$Species) , mean)   •  aggregate(iris[,1:4] , list(name = iris$Species) , sd)   •  aggregate(iris[,1:4] , list(name = iris$Species) , quantile)  
  • R – •  •  ggplot2 ”plyr” SQL ”sqldf”■ ggplot2 ■ sqldfddply(full_list, sqldf SELECTc("Subject","Class"), Species , function(df) COUNT(*) as numreturn(c(AVERAGE=mean(df FROM$RT)))) iris GROUP BY Species■ ■  http://cran.r-project.org/web/   http://code.google.com/p/sqldf/ packages/plyr/index.html   http://www.slideshare.net/aad34210/  http://plyr.had.co.nz/ tokyo-r-sqldf   TokyoR
  • R – •  sum() , mean()•  R Excel•  Sum() Sum(iris[,1]) Mean() Mean(iris[,1])sd() Sd(iris[,1]) Var() Var(iris[,1])Max() max(iris[,1])Min() Min(iris[,1])Rank() rank(iris[,1])Cor() cor(iris[,1] , iris[, 2])
  • R – • •  http://cran.r-project.org/doc/contrib/Short-refcard.pdf Math R Cheet Sheet
  • R – FUNCTION)•  R …•  function• judge_value <- function(v) { Judge_value z <- ifelse(v >= 0 , "+" , "-") v 0 print(z) }judge_value(v <- -10) −judge_value(v <- 10) +
  • R – FUNCTION)•  …•  Function()
  • R – •  R •    •  R■ R •  •  Install.packages() •  Vignettes • •  CRAN Task View •  http://cran.r-project.org/ web/views/•  •  http://cran.r-•  Twitter Facebook project.org/web/•  Yahoo! packages/zoo/ index.html
  • R – •  Install.packages()•  ggplot2 •  install.packages("ggplot2”) •  •  Library(ggplot2)
  • •  R•  R• • • • 
  • •  1.  CRAN R DL 2.  demo() 3.  iris , iris$Sepal.length , iris[1,1] , head(iris , 10) 4.  apply , aggregate , plyr , sqldf 5.  sum() , mean() , sd() … 6.  function() 7.  install.packages()
  • m(___)m