Data Science Desktop Survival Guide
by Graham Williams |
|||||
Selecting Columns |
20200317
Columns from a data frame can be dplyr::select()'ed simply by listing the column names. The columns in the resulting data frame will be in the same order as they are listed in the function call.
ds %>%
select(date, location, min_temp, temp_9am, temp_3pm, max_temp)
|