Here are ten R functions that have saved me a lot of time over the years. 1. forcats::fct_reorder() The forcats package has a lot of great functions. The one I use the most is the fct_reorder() function. I have also seen David Robinson using it a lot in his YouTube videos (I recommend his videos […]
Tag: tidyverse
Tidyverse resources on YouTube
I have been watching a lot of YouTube videos lately with people using tidyverse. These videos are not tutorials per se but rather demonstrations on how to wrangle and analyse data. These videos use a lot of dplyr and ggplot2 as well as packages associated with the tidyverse, e.g. tidytext. For the data, they often […]
Teaching material: Quantitative Politics with R
If you are interested in learning R, I can recommend this resource: Quantitative Politics with R. It is a guide in development (together with Zoltán Fazekas). In the current version, you will find an introduction to the basics of R (e.g. how to import and manipulate data), how to collect political data (primary and secondary […]