2012-01-01ãã1å¹´éã®è¨äºä¸è¦§
http://stackoverflow.com/questions/1581232/adding-commas-into-number-for-output formatC(100000, format="d", big.mark=',')
R Advent Calendar2012ã1æ¥ç®ã§ãã å æç§ã®å ¥éæ¸ã©ã¤ãã©ãªã«æ°ãã仲éãå¢ãã¾ãããRã§å¦ã¶ãã¼ã¿ã»ããã°ã©ãã³ã°å ¥é âRStudioãæ´»ç¨ããâä½è : ç³ç°åºåºåºç社/ã¡ã¼ã«ã¼: å ±ç«åºççºå£²æ¥: 2012/10/24ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 1人 ã¯ãªãã¯: 29åãã®â¦
twitter streamingãããã¼ã¿ãåå¾ãã¦åæã«ããããã MongoDBã«å ¥ãã¦ããã®ã楽ããã ããR使ã£ã¦APIå©ãã¦MongoDBã«å ¥ãã¦ããã®ã¯çµæ§é¢åãããªã®ã§Pythonããããããã®å¾ã®åæã¯Rã§ããã ã¨ãããã¨ã§ã¡ã¢ã³ã MongoDBã®windowsã¸ã®ã¤ã³ã¹ãã¼ã«â¦
webã¢ããªãç°¡åã«ä½ããã©ã¤ãã©ãªshinyãã¿ããªå¤§å¥½ãRStudioããå ¬è¡¨ãããã ä¸è¨ã«ãããããããã¥ã¼ããªã¢ã«ãããã®ã§èªãã°ãããã http://rstudio.github.com/shiny/tutorial 以ä¸ã¡ã¢ã shinyã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãã shinyã©ã¤ãã©ãªãrstâ¦
http://oreillynet.com/oreilly/data/radarreports/how-data-science-is-transforming-health-care.cspå ¨ä½çã«ããããããã¼ã¿ãããã®ã§ãããããã¨ãã§ããããããªããããã¨ããè«èª¿ã è¦ç¹ã¨ãã¦ã¯ãµããµããã¦ããã©çãæç« ã®ããã«ã¯ã¾ã¨ã¾ã£ã¦ãâ¦
è¨æ¸¬ããã¤ã¹ã®ãã¼ã¿ã¯ããããããªãå½¢å¼ã§ãã¼ã¿ãæã£ã¦ããæãããã®ã§ã¡ã¢ã http://sas-and-r.blogspot.jp/2012/09/example-101-read-file-byte-by-byte.html
ãã©ã¤ãã®åé¡ã®ããã ãã©ã32bitRã使ãã°ã¨ãããã解決ããã http://tolstoy.newcastle.edu.au/R/e12/help/10/12/8816.html ãããããã¼ã¿ã½ã¼ã¹ãè¨å®åºæ¥ãªãæã¯ãã¡ãã http://walbrix.net/blog/2010/05/64bit-windows-32bitodbc.html
äºéã«ãã°ã¤ã³ããå¿ è¦ãããã¨ããããªãã¨ãããã http://stackoverflow.com/questions/3287651/download-a-spreadsheet-from-google-docs-using-python
å¤ããã¼ã¸ã§ã³ã®Rï¼ã¨ãã£ã¦ãR2.14ï¼ã使ã£ã¦ãggplot2ã§æç»ãããã¨ããã¨initRefFieldsããªãã¨ããªãã¨ãè¨ãããã 対å¦æ³ã¯æ°ãããã¼ã¸ã§ã³ã使ããã¨ã https://groups.google.com/forum/?fromgroups=#!topic/ggplot2/FciMhMfDZp4ãã¼ã¸ã§ã³ã¢ããâ¦
http://stackoverflow.com/questions/5556135/how-to-get-the-date-of-maximum-values-of-rainfall-in-programming-language-r
ç°å¢æ§ç¯ http://ymotongpoo.hatenablog.com/entry/20120516/1337123564 http://stats.stackexchange.com/questions/1595/python-as-a-statistics-workbench ã¢ãã«ã¯scikits http://scikits.appspot.com/scikits ï¼scikitsããStatsModelsã¯ç¬ç«ããããã§â¦
forecastã¨ããè¨èãå¤ç¨ããã¦ãã®ã§æç³»åäºæ¸¬ã£ã¦æãããªã http://blog.revolutionanalytics.com/2012/07/applications-of-r-at-google.html https://plus.google.com/u/0/+ResearchatGoogle/posts/em2i7TEpHgj åæ£å¦çããããã£ã¦ããï¼ã£ã¦è©±ï¼å ·â¦
以ä¸(Rjpwiki)ã§åºã¦ããmapplyã®çµæã«unlistããã¾ãã http://goo.gl/DmPDo
reshapeé ããã http://stackoverflow.com/questions/8142176/fastest-way-to-reshape-variable-values-as-columns
Is R good with big data?ã®é¨åã¨ã³ã¡ã³ãæ¬ãã¡ã¢ã http://slashdot.org/topic/bi/r-octave-and-python-a-follow-up/
以ä¸ã®ãããªè¨äºããã(æãã¦ããã¦ãããã¨ãkaz_yosãã)ã http://schamberlain.github.com/2011/05/plyrs-idataframe-vs-dataframe/ å®éã«æå ã®ãã¼ã¿ã§è©¦ãã¦ã¿ã¦ãåçã«éããªã£ãã d*plyã使ãæã¯ã¨ãããããã¼ã¿ãidata.frameã«å¤æãã¦ããâ¦
ããã¥ã¡ã³ããå å®ãã¦ããã®ã§ãããèªãã°ããã®ã ããï¼²ã§ä»ã¾ã§è¡ã£ã¦ããä½æ¥ãç½®ãæãã¦ããæå³ã§ã¡ã¢ã http://pandas.pydata.org/pandas-docs/stable/ é©å®ã追è¨ã»ä¿®æ£ããã import pandas as pd import matplotlib.pyplot as plt from pandas â¦
ããããè©æ¬ºã«ãªã£ã¦ããã®ã§ããããPythonã使ãã ã¨ãã£ã¿ã¯ããªãã åå¼·ä¼ã§ç¥ãåã£ãæ¹ãEclipseä¸ã§Pythonã使ã£ã¦ããã¨ããã®ã§çä¼¼ãã¦ã¿ãã人éã¯åãé¢ãã¦ã¯çãã¦ãããªãã俺ã¯Rãé¢ãã¦ã¯çãã¦ãããªãã®ã§pandasãå ¥ãã¦Rã©ã¤ã¯ã«ä½¿ã£â¦
RstudioããRODBCã使ã£ã¦DBãã¤ãªãå ´åã®ã¡ã¢ã odbcDriverConnectã§ã¯ãªãã¦ãodbcConnectã使ãã http://support.rstudio.org/help/discussions/problems/2790-setting-up-rodbc
第25åTokyoRã§çºè¡¨ãã¦ããã çºè¡¨ã®ã³ã¼ãã¯ä»¥ä¸ã«ã http://rpubs.com/dichika/tokyor25 è¿½è¨ ä¸è¨ã«ç´58åéããªãã³ã¼ãï¼ã¨ããããå®ç³ï¼ãæ²è¼ããã¦ããã http://blog.goo.ne.jp/r-de-r/e/0bda946e86349cc29bef96eb65e43da6ã¡ãªã¿ã«ãã¡åºã対象åâ¦
ggplot2ãªãã¸ã§ã¯ãã¨latticeãªãã¸ã§ã¯ããåãç»é¢ã«æãã«ã¯gridExtraã使ãã¨è¯ãã http://rpubs.com/dichika/gridExtra
lubridateï¼ã©ããªã¼ãã¤ãã£ã¦èªãã®ãï¼ï¼ããã±ã¼ã¸ä½¿ãã¨ãæ¥ä»ã®å¤æãããªãããç´æçã«æä½ã§ããããªã®ã§å°ã触ã£ã¦ã¿ãã http://rpubs.com/dichika/lubridateè±èªã§ããã°å å®ãã解説ã以ä¸ã«ã http://www.r-statistics.com/2012/03/do-more-wiâ¦
ã¾ãgeom_text使ãã ããªãã§ããã©ã http://rpubs.com/dichika/ggplot2_label è¿½è¨ ä¸è¨ã§ãææããã ãã¦ãã http://blog.goo.ne.jp/r-de-r/e/d9625828ce6a2d8beb13908e5e1b9080
è²åãã ã¨è¦ã«ããå ´åãå¤ã ããã ã·ã³ãã«ã§åããæ¹æ³ï¼scale_shape_manualï¼ãæ¸ããã ã¾ãçªå·ã§æå®ããã ããªãã ãã©ã http://rpubs.com/dichika/ggplot2_shape 追è¨(2012/7/12) ããã ããã³ã¡ã³ãã«å¿ãã¦ä¿®æ£ã http://rpubs.com/dichika/ggpâ¦
ã³ã¼ãæ¸ãã¦ãã®çµæãã¾ã¨ãã¦å ¬éãããããããªæããã¨æãã¾ãã ä»åRPubsã¨ããæ段ã§ãããç°¡åã«ã§ãããã¨ã¨ãªãã¾ããï¼RStudioéå®ã®è©±ï¼ã çµæã¯ä»¥ä¸ã®ãããªæãã http://www.rpubs.com/dichika/wiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ããæ¹ â¦
以ä¸ã®ãããªæ°å¤åãããã¨ããã smp <- seq(62.5, 110, by = 2.5) [1] 62.5 65.0 67.5 70.0 72.5 75.0 77.5 80.0 82.5 85.0 87.5 90.0 92.5 95.0 97.5 100.0 102.5 105.0 107.5 110.0 ãããcuté¢æ°ã§ä¸è¨æ°å¤åã¨åãå¹ ã§åºéåå²ãã¦ã¿ãã ããã¨ä»¥ä¸â¦
MCMCã§æ··åå¹æã¢ãã«ã®ãã©ã¡ã¼ã¿æ¨å®ãããããã Rï¼ï¼å¤é¨ã¢ããªï¼ã§ãããã¨ããã¨ã¨ãããã以ä¸ã®æ¹æ³ãããããã§ã ï¼Task-viewãèªãéãä»ã«ããããããããã©ãæ¥æ¬èªæ å ±ã®éçèæ ®ãã¦ä»¥ä¸ãé¸ãã ãï¼ MCMC+ãã©ã¡ã¼ã¿æ¨å®ãä¸æ¬ã§Rã§ãã£ã¦â¦
æ£è¦è¡¨ç¾ã§ãã«ããã«ããã£ã¦ããããã ãããã©Nipponããã±ã¼ã¸ã®zen2hané¢æ°ã便å©ã library(Nippon) zen2han("ï¼ï¼ï¼ï¼ï¼ï¼¡ï¼¢ï¼£") [1] "12345ABC"
å æ¥ææ°ã¨è©±ãã¦ã¦åºå®é·ãã¼ã¿ã®è©±ãåºãã®ã§Rã§ã®èªã¿è¾¼ã¿ã«ã¤ãã¦ã¡ã¢ãRjpwiki:æ¥æ¬èªãå«ãåºå®é·ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ http://goo.gl/vSeBqæå ã®ç°å¢ã§ã¯read.fwfã§åé¡ãªãèªã¿ãããã > read.fwf("test.txt", width=c(3, 2, 3)) V1 V2 V3 1 123 ã â¦
å¿ããã®ã§å ¸åä¾ã ãã¡ã¢ã 以ä¸ã¯åã°ã©ãã®ä¾ã library(googleVis) Pie1 <- gvisPieChart(CityPopularity, options = list(reverseCategories = TRUE, width = 600, height = 500, legend = "top", title = "hoge", colors = "['red', 'black', 'blue']"â¦