Type constraints and NAs in lambda.r

January 15, 2015
By
Type constraints and NAs in lambda.r

Someone asked recently how lambda.r deals with NAs in type constraints. Type constraints are optional decorations on a function that …Continue reading →

Read more »

Maths, Music and Merkbar

January 15, 2015
By
Maths, Music and Merkbar

Control is what we already know. Control is where we have already ventured. Control is what helps us predict the future. (Merkbar) Maths and music get along very well. Last December I received a mail from a guy called Jesper. He is one of the two members of Merkbar: a electronic music band from Denmark. … Continue reading...

Read more »

Some basics for base graphics

January 15, 2015
By
Some basics for base graphics

by Joseph Rickert One of the greatest strengths of the R language is surely the base graphics capabilities. Grid graphics, lattice, ggplot2, bigvis and the many R packages that interface with javascript D3 graphics have added astounding capabilities, well beyond what can be achieved with base graphics alone. Nevertheless, the quick, one line, base graphics plots ( like plot()...

Read more »

MilanoR meeting: download presentations

January 15, 2015
By

The last MilanoR meeting will be held on December 18, 2

Read more »

How do you get things into base-R?

January 15, 2015
By
How do you get things into base-R?

A couple of months ago I spotted that the examples for the paste function weren’t very good, and actually, there were quite a few functions that new users of R are likely to encounter, that weren’t well explained. I’ve now managed to get some updated examples into R (paste, sum, NumericConstants, pie, a couple dozen

Read more »

R is still hot, and getting hotter

January 14, 2015
By

It's been more than four years since I wrote the white paper R is Hot with the goal of introducing R to companies who need modern and flexible data analysis software. It's still the most-downloaded whitepaper on the Revolution Analytics website. But a lot has changed in the past four years: R's popularity has grown, and more and more...

Read more »

Using the microbenchmark package to compare the execution time of R expressions

January 14, 2015
By
Using the microbenchmark package to compare the execution time of R expressions

I recently learned about the microbenchmark package while browsing through Hadley’s advanced R programming book. I’ve done some quick benchmarking using system.time() in a for loop and taking the average, but the microbenchmark function in the microbenchmark package makes this much easier. Hadley gives the example of taking the square root of a vector using the built-in...

Read more »

The 74 most violent cities in Mexico

January 14, 2015
By
The 74 most violent cities in Mexico

I’ve updated the mxmortalitydb package to include 2013 data. This data only package includes all injury intent deaths (accidents, homicides, suicides, and unspcified intent) that were registered in Mexico from 2004 to 2013. You can use the package to calculate changes and trends in homicide rates in the most violent metro areas (or...

Read more »

Rabbit: introduction to R (free web book)

January 14, 2015
By

Dear R users, all chapters of Rabbit are now online. Ra

Read more »

Harvesting Canadian climate data

January 14, 2015
By
Harvesting Canadian climate data

In December I found myself helping one of our graduate students with a data problem; for one of their thesis chapters they needed a lot of hourly climate data for a handful of stations around Saksatchewan. All of this data was and is available for download from the Government of Canada’s website, but with one catch; you had to...

Read more »

Downloading Option Chain Data from Google Finance in R: An Update

January 13, 2015
By
Downloading Option Chain Data from Google Finance in R: An Update

I recently read an article which showed how to download Option Chain data from Google Finance using R. Interestingly, that article appears to be a close adaption of another article which does the same thing using Python. While playing around with the code from these articles I noticed a couple of things that might benefit

Read more »

Predictive analysis in eCommerce part-3

January 13, 2015
By

Welcome to the third part of series posts. In previous post, I discussed about the data points which we require to perform predictive analysis. In this post I will discuss about the solution approach along with required methodology and its implementation in R. Before we move ahead in this part, let us recall the prediction The post Predictive...

Read more »

simulation by inverse cdf

January 13, 2015
By
simulation by inverse cdf

Another Cross Validated forum question that led me to an interesting (?) reconsideration of certitudes! When simulating from a normal distribution, is Box-Muller algorithm better or worse than using the inverse cdf transform? My first reaction was to state that Box-Muller was exact while the inverse cdf relied on the coding of the inverse cdf, like

Read more »

Sessionizing Log Data Using dplyr [Follow-up]

January 13, 2015
By
Sessionizing Log Data Using dplyr [Follow-up]

Last week, I wrote a blog post showing how to sessionize log data using standard SQL. The main idea of that post is that if your analytics platform supports window functions (like Postgres and Hive do), you can make quick work out of sessionizing logs. Here’s the winning query:One nested sub-query and two window functions are

Read more »

Mango Solutions releases version 9.2 of Navigator Workbench

January 13, 2015
By

Mango Solutions are pleased to announce the release of version 9.2 of Navigator Workbench, their leading pharmacometric model development and reporting platform.   New Features This release includes a large number of enhancements, including the following features: Support for NONMEM … Continue reading →

Read more »

Interactive R Notebooks on powerful cloud hardware

January 13, 2015
By
Interactive R Notebooks on powerful cloud hardware

by Nick Elprin Co-Founder Domino Data Lab "R Notebooks" use the IPython Notebook UI to run R (rather than Python) in notebook cells, giving you an interactive R environment hosted on scalable servers, accessible through a web browser. This post describes how and why we built our "R Notebooks" feature. Our product, Domino, is a platform that facilitates the...

Read more »

Balancing the Load | What’s New in RStudio Server Pro?

January 13, 2015
By
Balancing the Load | What’s New in RStudio Server Pro?

As R users know, we’re continuously improving the RStudio IDE.  This includes RStudio Server Pro, where organizations who want to deploy the IDE at scale will find a growing set of features recently enhanced for them. If you’re not already familiar with RStudio Server Pro here’s an updated summary page and a comparison to RStudio

Read more »

r4stats.com 2014 in review

January 13, 2015
By
r4stats.com 2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog. Here’s an excerpt: The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 260,000 times in 2014. If it were an exhibit at … Continue reading →

Read more »

How to format your chart and axis titles in ggplot2

January 13, 2015
By
How to format your chart and axis titles in ggplot2

Once you know how to create simple plots you’ll want to learn how to design more sophisticated plots. A large part of being able to design sophisticated plots is having control over the “non-data elements” of the plot, such as the plot title and axis titles.You want to be able to format those and polish The post

Read more »

Using and interpreting different contrasts in linear models in R

January 13, 2015
By
Using and interpreting different contrasts in linear models in R

When building a regression model with categorical variables with more than two levels (ie “Cold”, “Freezing”, “Warm”) R is doing internally some transformation to be able to compute regression coefficient. What R is doing is that it is turning your categorical variables into a set of contrasts, this number of contrasts is the number of

Read more »

Extended Kalman filter example in R

January 13, 2015
By
Extended Kalman filter example in R

Last week's post about the Kalman filter focused on the derivation of the algorithm. Today I will continue with the extended Kalman filter (EKF) that can deal also with nonlinearities. According to Wikipedia the EKF has been considered the de facto standard in the theory of nonlinear state estimation, navigation systems and GPS.Kalman filterI had the following...

Read more »

The R user point-of-view about “Statistics Without the Agonizing Pain”

January 12, 2015
By

Contrary to general expectations, or at least to my exp

Read more »

RcppGSL 0.2.3

January 12, 2015
By

A new version of RcppGSL is now on CRAN today. This package provides an interface from R to the GNU GSL using our Rcpp. Similar to the recent RcppClassic release, this update was triggered by the CRAN maintainers desire to keep the Makefile free of G...

Read more »

Simulated Annealing Feature Selection

January 12, 2015
By
Simulated Annealing Feature Selection

As previously mentioned, caret has two new feature selection routines based on genetic algorithms (GA) and simulated annealing (SA). The help pages for the two new functions give a detailed account of the options, syntax etc. The package already has functions to conduct feature selection using simple filters as well as recursive feature elimination (RFE). RFE...

Read more »

V8 version 0.4: console.log and exception handling

January 12, 2015
By
V8 version 0.4: console.log and exception handling

V8 version 0.4 has appeared on CRAN. This version introduces several new console functions (console.log, console.warn, console.error) and two vignettes: Introduction to V8 for R Using NPM packages in V8 I will talk more about using NPM in another blog post this week. JavaScript Exceptions Starting V8 version 0.4 each context has a console object...

Read more »

Join and set operations come to dplyr

January 12, 2015
By

The team at RStudio have just released an update to the immensely useful dplyr package, making it even more powerful for manipulating data frame data in R. The new 0.4.0 version adds new "verbs" to the syntax for mutating joins (left join, right join, etc.), filtering joins, and set operations (intersection and union). There's also some new documentation to...

Read more »

NFL Cluster Analysis…Part 2

January 12, 2015
By
NFL Cluster Analysis…Part 2

Another post on Cluster Analysis and the NFL, this time on the Perceivant.com blog.http://perceivant.com/nfl-ranking-cluster-analysis/

Read more »

Secure your Shiny apps (against SQL injection)

January 12, 2015
By

Shiny takes inputs from UI elements and sends them to the server, where the application...

Read more »

8 new R jobs (2014-01-12)

January 12, 2015
By
8 new R jobs (2014-01-12)

This is the bimonthly R Jobs post (for 2015-01-12), based on the R-bloggers’ sister website: R-users.com. If you are an employer who is looking to hire people from the R community, please visit this link to post a new R job (it’s free, and registration takes less than 10 seconds). If you are a job seekers, please follow the links below to learn more and apply for your job of interest (or visit previous...

Read more »