Blog Archives

Why loops are slow in R

June 10, 2018
By
Why loops are slow in R

In this post, I talk about loops in R, why they can be slow and when it is okay to use them. Don’t grow objects Let us generate a matrix of uniform values (max changing for every column). gen_grow

Read more »

Performance: when algorithmics meets mathematics

April 18, 2018
By
Performance: when algorithmics meets mathematics

In this post, I talk about performance through an efficient algorithm I developed for finding closest points on a map. This algorithm uses both concepts from mathematics and algorithmics. Problem to solve This problem comes from a recent question on StackOverflow. I have two matrices, one is 200K rows long, the other is 20K. For each row (which is...

Read more »

Teaching an advanced R course

March 28, 2018
By
Teaching an advanced R course

In this post, I come back to my first experience teaching an advanced R course over the past month. Content This course was programmed for 10 sessions (3 hours each) and I initially wanted to talk about the following subjects: R programming and g...

Read more »

Shiny App for making Pixel Art Models

November 15, 2017
By
Shiny App for making Pixel Art Models

Last weekend, I discovered the pixel art. The goal is to reproduce a pixelated drawing. Anyone can do this without any drawing skills because you just have to reproduce the pixels one by one (on a squared paper). Kids and big kids can quickly become addicted to this. Example For this pixelated ironman, you need only 3 colors (black,...

Read more »

Grenoble RUG: 2nd working session, ggplot2

October 24, 2017
By
Grenoble RUG: 2nd working session, ggplot2

The slides are available there. For example, you’ll learn

Read more »

Grenoble RUG: first working session

October 1, 2017
By
Grenoble RUG: first working session

In this post, I will talk about the organisation of our R User Group (RUG) in Grenoble and our first working session. Organisation Each month, we have a working session of 2 hours. The first hour is dedicated to a presentation/tutorial (you can see t...

Read more »

Scraping some French medical school rankings

September 9, 2017
By
Scraping some French medical school rankings

In this post, I will analyze the results of the “épreuves classantes nationales (ECN)”, which is a competitive examination at the end of the 6th year of medical school in France. First ones get to choose first where they want to continue their medical training. A very clean dataset The data is in a PDF there. I’m not an expert in...

Read more »

A guide to parallelism in R

September 4, 2017
By

In this post, I will talk about parallelism in R. This post will likely be biased towards the solutions I use. For example, I never use mcapply nor clusterApply. I prefer to always use foreach. In this post, we will focus on how to parallelize R code on your computer. I will use mainly silly examples, just to show...

Read more »

One month as a procrastinator on Stack Overflow

July 26, 2017
By
One month as a procrastinator on Stack Overflow

Hello everyone, I’m 6103040 aka F. Privé. In this post, I will give some insights about answering questions on Stack Overflow (SO) for a month. One of the reason I’ve began frenetically answering questions on Stack Overflow was to procrastinate while finishing a scientific manuscript. My activity on Stack Overflow We’ll use David Robinson’s package stackr to get data from Stack...

Read more »

Package bigstatsr: Statistics with matrices on disk (useR 2017)

July 20, 2017
By
Package bigstatsr: Statistics with matrices on disk (useR 2017)

In this post, I will talk about my package bigstatsr, which I’ve just presented in a lightning talk of 5 minutes at useR!2017. You can listen to me in action there. I should have chosen a longer talk to explain more about this package, maybe next time. I will use this post to give you a more detailed version...

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)