Publications by Econometrics and Free Software

Work on lists of datasets instead of individual datasets by using functional programming

20.12.2016

Analyzing a lot of datasets can be tedious. In my work, I often have to compute descriptive statistics, or plot some graphs for some variables for a lot of datasets. The variables in question have the same name accross the datasets but are measured for different years. As an example, imagine you have this situation: data2000 <- mtcars data2001 <-...

2924 sym R (7590 sym/13 pcs)

Functional programming and unit testing for data munging with R available on Leanpub

23.12.2016

The book I’ve been working on these pasts months (you can read about it here, and read it for free here) is now available on Leanpub! You can grab a copy and read it on your ebook reader or on your computer, and what’s even better is that it is available for free (but you can also decide to buy it if you really like it). Here is the link on L...

1728 sym

My free book has a cover!

23.12.2016

I’m currently writing a book as a hobby. It’s titled Functional programming and unit testing for data munging with R and you can get it for free here. You can also read it online for free on my webpage What’s the book about? Here’s the teaser text: Learn the basics of functional programming, unit testing and package development for the R...

1358 sym 2 img

How to use jailbreakr

17.02.2017

What is jailbreakr The jailbreakr package is probably one of the most interesting packages I came across recently. This package makes it possible to extract messy data from spreadsheets. What is meant by messy? I am sure you already had to deal with spreadsheets that contained little tables inside a single sheet for example. As far as I know, the...

4202 sym R (9832 sym/9 pcs)

How to use jailbreakr

17.02.2017

What is jailbreakr The jailbreakr package is probably one of the most interesting packages I came across recently. This package makes it possible to extract messy data from spreadsheets. What is meant by messy? I am sure you already had to deal with spreadsheets that contained little tables inside a single sheet for example. As far as I know, the...

4204 sym R (9833 sym/9 pcs)

Lesser known dplyr tricks

08.03.2017

In this blog post I share some lesser-known (at least I believe they are) tricks that use mainly functions from dplyr. Removing unneeded columns Did you know that you can use - in front of a column name to remove it from a data frame? mtcars %>% select(-disp) %>% head() ## mpg cyl hp drat wt qsec vs am gear car...

2097 sym R (8435 sym/10 pcs)

Lesser known dplyr tricks

09.03.2017

In this blog post I share some lesser-known (at least I believe they are) tricks that use mainly functions from dplyr. Removing unneeded columns Did you know that you can use - in front of a column name to remove it from a data frame? mtcars %>% select(-disp) %>% head() ## mpg cyl hp drat wt qsec vs am gear car...

2101 sym R (8792 sym/10 pcs)

Lesser known purrr tricks

24.03.2017

purrr is a package that extends R’s functional programming capabilities. It brings a lot of new stuff to the table and in this post I show you some of the most useful (at least to me) functions included in purrr. Getting rid of loops with map() library(purrr) numbers <- list(11, 12, 13, 14) map_dbl(numbers, sqrt) ## [1] 3.316625 3.464102 3....

3506 sym R (3985 sym/13 pcs)

Lesser known purrr tricks

24.03.2017

purrr is a package that extends R’s functional programming capabilities. It brings a lot of new stuff to the table and in this post I show you some of the most useful (at least to me) functions included in purrr. Getting rid of loops with map() library(purrr) numbers <- list(11, 12, 13, 14) map_dbl(numbers, sqrt) ## [1] 3.316625 3.464102 3....

3508 sym R (3899 sym/13 pcs)

Lesser known purrr tricks

24.03.2017

purrr is package that extends R’s functional programming capabilities. It brings a lot of new stuff to the table and in this post I show you some of the most useful (at least to me) functions included in purrr. Getting rid of loops with map() library(purrr) numbers <- list(11, 12, 13, 14) map_dbl(numbers, sqrt) ## [1] 3.316625 3.464102 3.60...

3506 sym R (3896 sym/13 pcs)