Data Science Desktop Survival Guide
by Graham Williams |
|||||
Modify Columns |
ds %>%
select(date, location, pressure_9am)
ds %>%
mutate(pressure_9am=round(pressure_9am, 0)) %>% select(date, location, pressure_9am)
To convert all character columns to be numeric:
|
ds %>%
mutate(across(where(is.character), as.numeric))
|