In this video I show students how to tranform data using filter(), select() and mutate() from the dplyr package in R.
This video is part of a series of videos on wrangling data in R: https://youtube.com/playlist?list=PLz_H8pWWERSx2Tp_zDW0PB4c63x1Zl_Mu&si=ZyHZvKtqiJJCZRJK
Code and data are here: https://github.com/eteitelbaum/youtube-code
Table of Contents:
01:27 - Quick tour of V-Dem website
02:59 - Setup
04:22 - Download data using vdem
08:43 - Adding region names with case_match()
11:18 - Forgot to select year!
12:46 - Wrap up