Blog Archives

Whether to use a data frame in R?

July 19, 2018
By

In this post, I try to show you in which situations using a data frame is appropriate, and in which it’s not. Learn more with the Advanced R book. What is a data frame? A data frame is just a list of vectors of the same length, each vector being a column. This may convince you: str(iris) ## 'data.frame':...

Read more »

Why I rarely use apply

July 13, 2018
By
Why I rarely use apply

In this short post, I talk about why I’m moving away from using function apply. With matrices It’s okay to use apply with a dense matrix, although you can often use an equivalent that is faster. N

Read more »

One year as a subscriber to Stack Overflow

July 1, 2018
By
One year as a subscriber to Stack Overflow

In this post, I follow up on a previous post describing how last year in July, I spent one month mostly procrastinating on Stack Overflow (SO). We’re already in July so it’s time to get back to one year of activity on Stack Overflow. Am I still as much active as before? What is my strategy for answering questions...

Read more »

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 »

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)