In this video, we take a look at re-arranging variable values in R. This is done using the mutate(), factor() function with the levels option and the fct_rev() function from the dplyr and forcats packages.
This is the 6th video of Chapter 5 for the book Quantitative Social Science Data with R, 2nd Edition (Sage).
April 2023 Update: Data & codebooks are now available for these R tutorials:
https://study.sagepub.com/Fogarty2e
Тэги:
#tidyverse #forcats