Monthly Archives: November 2018

Til I Die: Seeking new music

November 30, 2018
By

I’ve been following the tweets from an account called Albums You Must Hear @Albums2Hear. Each tweet is an album recommended by the account owner. I’m a sucker for lists of Albums That I Must Hear Before I Die since I’m always interested in new (or not so new) music recommendations. I wanted to assemble a

Read more »

Simulating dinosaur populations, with R

November 30, 2018
By

So it turns out that the 1990 Michael Crichton novel Jurassic Park is, indeed, a work of fiction. (Personal note: despite the snark to follow, the book is one of my all-time favorites — I clearly remember devouring it in 24 hours straight while ill in a hostel in France.) If the monsters and melodrama didn't give it away,...

Read more »

A simple function to create nice correlation plots

November 30, 2018
By
A simple function to create nice correlation plots

The problem I was working with a dataset where I wanted to assess the correlation of different variables in R. As much as I like R – the outputs from the console window leave something to be desired (in terms of data visualisation). Therefore, I wanted a way to visualise these correlations in a nicer...

Read more »

NYC buses: Cubist regression with more predictors

November 30, 2018
By
NYC buses: Cubist regression with more predictors

CategoriesAdvanced Modeling Tags Data Management Linear Regression R Programming We have previously added a set of company identity-agnostic predictors, such as the number of drivers a company employs, or the number of vehicles in the fleet with a hydraulic lift, and so on. we took this approach, rather than having each company as a unique predictor, so that the addition of a new contractor...

Read more »

Number of births in the twentieth century by @ellis2013nz

November 30, 2018
By
Number of births in the twentieth century by @ellis2013nz

Motivation A couple of weeks back, Branko Milanovic asked on Twitter : “Does anyone know a link to a calculation on how many people were born … in the entire 20th century?” Somewhat surprisingly, no-one did. However, there was a calculatio...

Read more »

Faster garbage collection in pqR

November 29, 2018
By
Faster garbage collection in pqR

The latest version of pqR and the version before as well use a new garbage collector, and new memory layouts for R objects, which both reduce memory usage and considerably speed up garbage collection. Here, I’ll give an overview of how the new scheme works, and present some performance comparisons with R-3.5.1.  Some more details are presented

Read more »

Creating and saving multiple plots to Powerpoint

November 29, 2018
By

At the NHS R conference we delivered a session on animating patient flow. This started with a single plot showing all patient movements, and then I demonstrated the ability to create a faceted plot. But, with many different areas, and a smal...

Read more »

Using taxa and metacoder to explore taxonomy of Vancouver’s trees

November 29, 2018
By
Using taxa and metacoder to explore taxonomy of Vancouver’s trees

From the last post, Vancouver has several common genus in its collection, such as Prunus and Acer. So rather than analyzing the diversity of Vancouver tree species on a species level, we could, with the help of some R packages, visualize the variety of taxonomic groups. First, we format the Vancouver tree dataset similar to before to get the proper...

Read more »

Linear, Quadratic, and Regularized Discriminant Analysis

Linear, Quadratic, and Regularized Discriminant Analysis

Discriminant analysis encompasses methods that can be used for both classification and dimensionality reduction. Linear discriminant analysis (LDA) is particularly popular because it is both a classifier and a dimensionality reduction technique. Quadratic discriminant analysis (QDA) is a variant of LDA that allows for non-linear separation of data. Finally, regularized discriminant analysis (RDA) is a compromise between LDA and...

Read more »

DBnomics R client, a tutorial

November 29, 2018
By
DBnomics R client, a tutorial

DBnomics : the world’s economic database You can explore all the economic data from different providers by following the link db.nomics.world. You can also retrieve all the economic data through the rdbnomics package here. This blog post describes the different ways to do so. Fetch time series by ids First, let’s assume that we know which series we want to download. A series identifier (ids)...

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)