After some tinkering, the following works and requires very little typing.
data %>% select(-b,b)
UPDATE: dplyr 1.0.0
dplyr 1.0.0 introduces the relocate verb:
data %>% relocate(b, .after = last_col())
I still prefer the old “hacky” way.
After some tinkering, the following works and requires very little typing.
data %>% select(-b,b)
UPDATE: dplyr 1.0.0
dplyr 1.0.0 introduces the relocate verb:
data %>% relocate(b, .after = last_col())
I still prefer the old “hacky” way.