Monthly Archives: November 2016

Plotting my trips with ubeR

November 27, 2016
By
Plotting my trips with ubeR

@drsimonj here to explain how I used ubeR, an R package for the Uber API, to create this map of my trips over the last couple of years:  Getting ubeR The ubeR package, which I first heard about here, is currently available on GitHub. In R, install and load it as follows: # install.packages("devtools") # Run to install the devtools package...

Read more »

Building a column selecter

November 27, 2016
By
Building a column selecter

Maybe the following sounds familiar. You have a large data set with many, many columns of which the most are irrelevant to you. Typically, a dump from a database or the full set extracted from an API. Several times I found myself the better part of an afternoon going back and forth between a view of the data where...

Read more »

Daily metric tracking with ggplot2

November 26, 2016
By
Daily metric tracking with ggplot2

In my role I have to produce a lot of run charts and control charts for monthly data, but sometimes there are processes behind the run charts that merit looking at the data on a daily basis. It can become impractical to start producing run c...

Read more »

Daily metric tracking with ggplot2

November 26, 2016
By
Daily metric tracking with ggplot2

In my role I have to produce a lot of run charts and control charts for monthly data, but sometimes there are processes behind the run charts that merit looking at the data on a daily basis. It can become impractical to start producing run c...

Read more »

Can we predict flu deaths with Machine Learning and R?

November 26, 2016
By
Can we predict flu deaths with Machine Learning and R?

Among the many R packages, there is the outbreaks package. It contains datasets on epidemics, on of which is from the 2013 outbreak of influenza A H7N9 in China, as analysed by Kucharski et al. (2014): A. Kucharski, H. Mills, A. Pinsent, C. Fraser,...

Read more »

The Effective Number of Parties in the Electorate by Year and Region

November 26, 2016
By
The Effective Number of Parties in the Electorate by Year and Region

Tasks: Compute the Effective Number of Parties by year and region Using the American National Election Studies, compute the Effective Number of Parties in the electorate across regions and years/waves. The data The data come from The American National Election Studies (ANES). The ANES is a survey that covers voting behavior, public opinion, and political participation. Many other countries have their own version...

Read more »

Error, trend, seasonality – ets and its forecast model friends

November 26, 2016
By
Error, trend, seasonality –  ets and its forecast model friends

A broad family of fast and effective forecast methods Exponential smoothing state space methods constitute a broad family of approaches to univariate time series forecasting that have been around for many decades and only in the twenty-first century pl...

Read more »

Learning R programming by reading books: A book list #rstats

November 26, 2016
By
Learning R programming by reading books: A book list #rstats

R is an open-source software package and rapidly increases its popularity in both industry and academics. Google trend is probably the best tool to show you how popular R is since it allows us to rank the search interest among five major statistical so...

Read more »

How to write and document %special% functions in R

November 26, 2016
By

I spend a considerable time of my working hours with data processing where I often use the %in% R function as x %in% y. Whenever I need the negation of that, I used to write !(x %in% y). Not much of a hassle, but still, wouldn’t it be nicer to have x %notin% y instead? So I decided to...

Read more »

Compare Dates With RForcecom

November 25, 2016
By

Have you used RForcecom to connect R to Salesforce? It’s really cool, and thanks to it using Bulk API, it’s absolutely rapid. Anyway, I recently came across a problem when trying to query records which had been edited based o...

Read more »

Search R-bloggers

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)