Monthly Archives: March 2016

The Simpsons as a Chart

March 26, 2016
By
The Simpsons as a Chart

Inspired by this clever image, I thought I would whip it up in R.Results:Below is the R code: 1: # Prepare ----------------------------------------------------------------- 2: rm(list=ls());gc() 3: pkg <- c("ggplot2") 4: inst <- pkg %in% i...

Read more »

Rcpp 0.12.4: And another one

March 26, 2016
By

The fourth update in the 0.12.* series of Rcpp has now arrived on the CRAN network for GNU R, and has just been pushed to Debian as well. This follows four days of idleness in the incoming/ directory: Word is that the tireless CRAN maintainers were traveling and only covering simpler packages. The 0.12.4...

Read more »

Nuclear Animations in R

March 26, 2016
By

@jsvine (Data Editor at BuzzFeed) cleaned up and posted a data sets of historical nuclear explosions earlier this week. I used it to show a few plotting examples in class, but it’s also a really fun data set to play around with: categorial countries; time series; lat/long pairs; and, of course, nuclear explosions! My previous

Read more »

Choice Modeling with Features Defined by Consumers and Not Researchers

March 25, 2016
By
Choice Modeling with Features Defined by Consumers and Not Researchers

Choice modeling begins with a researcher "deciding on what attributes or levels fully describe the good or service." This is consistent with the early neural networks in which features were precoded outside of the learning model. That is, choice modeli...

Read more »

Introductions to R and predictive analytics

March 25, 2016
By

If you're new to the concept of predictive models, or just want to review the background on how data scientists learn from past data to predict the future, you may be interested in my talk from the Data Insights Summit, Introduction to Real-Time Predictive Modeling. In the talk above I gave a brief introduction to the R language and...

Read more »

Easy data validation with the validate package

March 25, 2016
By
Easy data validation with the validate package

The validate package is our attempt to make checking data against domain knowledge as easy as possible. Here is an example. The summary gives an overview of the number of items checked. For an aggregated test, such as the … Continue reading →

Read more »

googleformr asks – why R u open-source?

March 25, 2016
By
googleformr asks – why R u open-source?

googleformr is a CRAN package for collecting data programmatically via Google Forms. For collecting data online through user submissions, Google Forms can be a very convenient way to maintain a lot of control. Trying to use Google Sheets or public folders on Dropbox either requires maintain a lot of credentialling, sharing your keys, or giving users direct...

Read more »

Additive modelling global temperature time series: revisited

March 25, 2016
By
Additive modelling global temperature time series: revisited

Quite some time ago, back in 2011, I wrote a post that used an additive model to fit a smooth trend to the then-current Hadley Centre/CRU global temperature time series data set. Since then the media and scientific papers have been full of reports of record warm temperatures in the past couple of years, of controversies (imagined) regarding...

Read more »

Football by the numbers

March 24, 2016
By

Salvino A. Salvaggio In this blog I publish data analysis cases based on the R statistical language. No statistical or mathematical theory here, no discussions of the R language, no software tutorials, but only concrete case studies using existing R...

Read more »

For loops in R can lose class information

March 24, 2016
By

Did you know R‘s for() loop control structure drops class annotations from vectors? Consider the following code R code demonstrating three uses of a for-loop that one would expect to behave very similarly. dates <- c(as.Date('2015-01-01'),as.Date('2015-01-02')) for(ii in seq_along(dates)) { di <- dates print(di) } ## "2015-01-01" ## "2015-01-02" for(di in as.list(dates)) { … Continue reading...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)