across() function appreciation

Wrangle and change multiple columns with the across() function from dplyr. So quick! So simple! Mutate all numeric variables and calculate the country mean across all years in the dataset. Then use .names = argument to give a new column variable name! And optional code if you want to make the graph a bit prettier. … Continue reading across() function appreciation