Create the dataframe taxis_smaller that excludes the columns VendorID, rate, and store_and_fwd_flag.
taxis_smaller <- taxis %>% select(taxis,-c("VendorID","rate","store_and_fwd_flag"))
select(taxis,-c("VendorID","rate","store_and_fwd_flag"))
Create the dataframe taxis_smaller that excludes the columns VendorID, rate, and store_and_fwd_flag.
taxis_smaller <- taxis %>% select(taxis,-c("VendorID","rate","store_and_fwd_flag"))
select(taxis,-c("VendorID","rate","store_and_fwd_flag"))
An alternate approach to -
placement when piping select
is:
taxis_smaller <- taxis %>%
select(-VendorID, -rate, -store_and_fwd_flag)