Показаны сообщения с ярлыком R. Показать все сообщения
Показаны сообщения с ярлыком R. Показать все сообщения

понедельник, 6 октября 2014 г.

R awesome!


  • CVSkit is a suite of utilities for converting to and working with CSV, the king of tabular file formats. It is inspired by pdftk, gdal and the original csvcut utility by Joe Germuska and Aaron Bycoffe.
  • dplyr and pipes: the basics. The dplyr R package is awesome. Pipes from the magrittr R package are awesome. Put the two together and you have one of the most exciting things to happen to R in a long time.

среда, 1 октября 2014 г.

Автообновление R

Upgrading to R 3.1.1 on Windows

If you are using Windows you can easily upgrade to the latest version of R using the installr package. Simply run the following code:
# installing/loading the latest installr package:
install.packages("installr"); require(installr) #load / install+load installr
 
updateR()
After running “updateR()”, the function will detect that R is available for you, and will download+install it (etc.).

четверг, 30 января 2014 г.

Изыскания по R


  • RStudio v0.98.501 — January 29th, 2014
    Environment Pane
    •Use str() for displaying object values
    Теперь переменные открываются не в текстовом редакторе, а в окне в усеченном виде. Показывает сводку по структуре (в отличии от ранее открывавшегося во внешнем файле текстового представления всей переменной)
  • Функции для отображения данных: str(), summary(), ls.str()ls()
  • Полный вывод: dput(),
  • Если данных не хватает в исходном источнике, то ts начинает гнать по кругу и добивает недостающие не NA, а данными с начала источника
  • Смена языка вывода сообщений в консоли: 

    How to change language setting of R on Windows

    I read FAQ on CRAN, but it was a bit confusing to a novice like me.  So here is the screenshot.  First, go to the "etc" folder under R program files folder.  Then locate Rconsole file. Find the line "language =  ", change it to "language = en"  if you want to run R in English. Save the file. Windows (I am using Windows 7.)  told me that I have no permission to change the Rconsole file and that I should contact the administrator. Thank you. !  I am the administrator/user.  I had to right click on the Rconsole file icon, select Property and grant a permission to modify the file to myself, the user. 
  • Установка паузы при выводе графиков ("Hit to see next plot")
    par(ask = TRUE). Если правильно понимаю, то это все работает для девайса вплоть до перезагрузки (в RStudio).
  • Смена языка вывода сообщений в коде: 
You can set this using the Sys.setenv() function. My R session defaults to English, so I'll set it to French and then back again:
> Sys.setenv(LANG = "fr")
> 2 + x
Erreur : objet 'x' introuvable
> Sys.setenv(LANG = "en")
> 2 + x
Error: object 'x' not found
  • Красивая тема для ggplot2:
    Thanks! Yup, it's a custom theme (a work in progress). You can find it here: https://github.com/noamross/no...
    Glad it's useful. Note you can get "Lato Light" from Google Web Fonts, and you may want the R package "extrafont" to get the font into PDF figures.
Визуализация графиков

четверг, 28 ноября 2013 г.

R

Tools

  • R is the world’s most powerful programming language for statistical computing, machine learning and graphics as well as a thriving global community of users, developers and contributors.
  • Quick-R: accessing the power of R
  • inside-R: A Community Site for R (Sponsored by Revolution Analytics)
  • Sweave is a tool that allows to embed the R code for complete data analyses in latex documents.
  • R-Studio is a free and open source integrated development environment for R. You can run it on your desktop (Windows, Mac, or Linux) or even over the web using RStudio Server.
  • R-Commander: A Basic-Statistics GUI for R
  • StatIce. Predictive analytics in the cloud based on R

Time Series & forecasting

Stackoverflow