Renaming a column as part of a select
rename() isn't the only way you can choose a new name for a column; you can also choose a name as part of a select().
Questo esercizio fa parte del corso
Data Manipulation with dplyr
Istruzioni dell'esercizio
- Select the columns
state,county, andpovertyfrom thecountiesdataset; in the same step, rename thepovertycolumn topoverty_rate.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
counties %>%
# Select state, county, and poverty as poverty_rate
___