Publications by Econometrics and Free Software
Introducing brotools
I’m happy to announce my first R package, called brotools. This is a package that contains functions that are specific to my needs but that you might find also useful. I blogged about some of these functions, so if you follow my blog you might already be familiar with some of them. It is not on CRAN and might very well never be. The code is hos...
851 sym R (51 sym/1 pcs)
Introducing brotools
I’m happy to announce my first R package, called brotools. This is a package that contains functions that are specific to my needs but that you might find also useful. I blogged about some of these functions, so if you follow my blog you might already be familiar with some of them. It is not on CRAN and might very well never be. The code is hos...
851 sym R (51 sym/1 pcs)
Make ggplot2 purrr
Update: I’ve included another way of saving a separate plot by group in this article, as pointed out by @monitus. Actually, this is the preferred solution; using dplyr::do() is deprecated, according to Hadley Wickham himself. I’ll be honest: the title is a bit misleading. I will not use purrr that much in this blog post. Actually, I will use ...
5088 sym R (2277 sym/12 pcs) 4 img
Make ggplot2 purrr
I’ll be honest: the title is a bit misleading. I will not use purrr that much in this blog post. Actually, I will use one single purrr function, at the very end. I use dplyr much more. However Make ggplot2 purrr sounds better than Make ggplot dplyr or whatever the verb for dplyr would be. Also, this blog post was inspired by a stackoverflow que...
3728 sym R (1333 sym/10 pcs) 4 img
Lesser known dplyr 0.7* tricks
This blog post is an update to an older one I wrote in March. In the post from March, dplyr was at version 0.50, but since then a major update introduced some changes that make some of the tips in that post obsolete. So here I revisit the blog post from March by using dplyr 0.70. Create new columns with mutate() and case_when() The basic things ...
4318 sym R (4127 sym/16 pcs)
Lesser known dplyr 0.7* tricks
This blog post is an update to an older one I wrote in March. In the post from March, dplyr was at version 0.50, but since then a major update introduced some changes that make some of the tips in that post obsolete. So here I revisit the blog post from March by using dplyr 0.70. Create new columns with mutate() and case_when() The basic things ...
4318 sym R (4127 sym/16 pcs)
Lesser known dplyr 0.7* tricks
This blog post is an update to an older one I wrote in March. In the post from March, dplyr was at version 0.50, but since then a major update introduced some changes that make some of the tips in that post obsolete. So here I revisit the blog post from March by using dplyr 0.70. Create new columns with mutate() and case_when() The basic things ...
4318 sym R (4139 sym/16 pcs)
tidyr::spread() and dplyr::rename_at() in action
I was recently confronted to a situation that required going from a long dataset to a wide dataset, but with a small twist: there were two datasets, which I had to merge into one. You might wonder what kinda crappy twist that is, right? Well, let’s take a look at the data: data1; data2 ## # A tibble: 20 x 4 ## country date varia...
1615 sym R (4638 sym/4 pcs)
tidyr::spread() and dplyr::rename_at() in action
I was recently confronted to a situation that required going from a long dataset to a wide dataset, but with a small twist: there were two datasets, which I had to merge into one. You might wonder what kinda crappy twist that is, right? Well, let’s take a look at the data: data1; data2 ## # A tibble: 20 x 4 ## country date varia...
1615 sym R (4638 sym/4 pcs)
tidyr::spread() and dplyr::rename_at() in action
I was recently confronted to a situation that required going from a long dataset to a wide dataset, but with a small twist: there were two datasets, which I had to merge into one. You might wonder what kinda crappy twist that is, right? Well, let’s take a look at the data: data1; data2 ## # A tibble: 20 x 4 ## country date variable_...
2384 sym