The starts_with("O")
from tidyselect
works well with dplyr::select
function but not with collapse::fselect
. Wondering if I'm missing some basic here.
library(collapse)
library(tidyverse)
wlddev %>%
select(starts_with("O")) %>%
head()
#> OECD ODA
#> 1 FALSE 116769997
#> 2 FALSE 232080002
#> 3 FALSE 112839996
#> 4 FALSE 237720001
#> 5 FALSE 295920013
#> 6 FALSE 341839996
wlddev %>%
fselect(starts_with("O")) %>%
head()
#> Error:
#> ! `starts_with()` must be used within a *selecting* function.
#> i See <https://tidyselect.r-lib.org/reference/faq-selection-context.html>.