2014-07-01ãã1ã¶æéã®è¨äºä¸è¦§
éè¨çµæãéä¸ã§ããããããªããããã®çµæã¯ãªãã¸ã§ã¯ãã«ä¿åãã¦ããããã ä¾ãã°ä»¥ä¸ã®ãããªã±ã¼ã¹ã§ãã library(dplyr) > iris %>% group_by(Species) %>% summarise(avg=mean(Sepal.Length)) -> res > plot(res) #plotçµæã¯çç¥ ãããªæã¯magrâ¦
ä¸è¨ã®ããã«ã°ã«ã¼ãåãã¦æ±ããçµ±è¨éãå ã®ãã¼ã¿ã«ä»å ãããã¨ã¯å¤ã ããã¨æãã¾ãã library(dplyr) iris <- iris %>% group_by(Species) %>% mutate(Sp.mean=mean(Sepal.Length)) ããããããã§irisã2åãæ¸ãã®ã¯åé·ãªã®ã§ã·ã³ãã«ã«ãããã â¦
大æµãã¼ã¿ãã¬ã¼ã ã§æ±ãã®ã ããJSONã®ãã¼ã¿ãèªã¿è¾¼ãéãªã©ãªã¹ãã§æ±ããããå¾ãªãæãããã ã§ããªã¹ãã®ãã¼ã¿ãã³ããªã³ã°ããããªã«ãã£ã¦ãããrlistã¨ããããã±ã¼ã¸ãããã http://renkun.me/r/2014/06/26/rlist-a-new-package-for-working-â¦
data.tableã®freadã¯èªã¿è¾¼ã¿ããã¡ãéããzipããã®ã¾ã¾èªã¿è¾¼ãã§ãããªãã > fread("C:/Users/hoge/iris.zip") Error in fread("C:/Users/h1030/iris.zip") : embedded nul in string: '$Qcーゥエï¾?eè½I7!H\036ヲ+1ォ:ç²*=\026\035mス岻Iï¾ï½·å¼GS?T)ï¾\xe4\001ェRâ¦
YOããããã±ã¼ã¸ãä½ãã¾ããã Rç¨ã¨juliaç¨ã¨ããã¾ãã é·ãè¨ç®ããã£ãå¾ã®ããã·ã¥éç¥ãªã©ã«ã©ããã API tokenã®åå¾ã¯ä¸è¨ããã http://yoapi.justyo.co/ # Rã®å ´å library(devtools) install_github("dichika/yo") library(yo) # ãã©ãã¯ã¼å ¨â¦
=ã¨ã-=ã¨ãã£ãä»£å ¥æ¼ç®åãä»ã®è¨èªã«ã¯ããããã§ããRã«ã¯ãªãã ã§ããmagrittrããã±ã¼ã¸ã®:=ã使ããã¨ã§å®ç¾ã§ãã¾ãã devtools::install_github("smbache/magrittr") a=1 a:=add(1) a:=subtract(1)
å æ¥ã®JuliaTokyo#1ã®ãã®çºè¡¨è³æãããããããã®ã§èªãã¨åã http://www.slideshare.net/KentaSato/julia-36649709 âã®æ¹ã®ããã±ã¼ã¸ï¼juliaã®ã©ã³ãã ãã©ã¬ã¹ãï¼ã¯å®éã«ã³ã¼ããæ¸ãä¸ã§åèã«ãªãã https://github.com/bicycle1885/RandomForestsâ¦
å æ¥ã®ã¯ã¬ãããªæ©ã¿ã親åãªããããã解決ãã¦ããã¾ãããç´ æµã§ããï¼ https://github.com/smbache/magrittr/pull/23ãããåãè¾¼ã¾ããã¨ã¯æãã¾ããããã«ä½¿ãããç§ã¯ä»¥ä¸ã®ããã«ããã®ã§ããã library(devtools) install_github("teramonagi/magâ¦
%>%é£çºããªããããªãã¸ã§ã¯ãã¯æ®ãããããããªãã¨ããã¨æãã¾ãã 以ä¸ã®ãããªæãã§ããããããã§ãããããããã¯ã¨ã©ã¼ã«ãªãã iris %>% group_by(Species) %>% summarise(mn=mean(Sepal.Length)) -> res %>% qplot(data=.,x=Species,y=mn,geom=â¦