I want to select all columns, starting with fy and ending with giving , using dplyr . I tried the following code
df %>% select(start_with('fy') & ends_with('giving')
but it didnβt work.
p / s: actually i can crack it with the following snippet
df %>% select(starts_with('fy')) %>% select(ends_with('giving'))
But I still want to put all two conditions in one place
source share