Mimics dplyr::select using base R and rlang

b_select(.data, ...)

# S3 method for default
b_select(.data, ...)

# S3 method for split_df
b_select(.data, ...)

Arguments

.data

data.frame

...

unquoted variable names or character names

Value

data.frame

See also

Examples

airquality%>% b_select(c(Day,Temp))%>% head()
#> Day Temp #> 1 1 67 #> 2 2 72 #> 3 3 74 #> 4 4 62 #> 5 5 56 #> 6 6 66
airquality%>% b_select(c('Day','Temp'))%>% head()
#> Day Temp #> 1 1 67 #> 2 2 72 #> 3 3 74 #> 4 4 62 #> 5 5 56 #> 6 6 66
airquality%>% b_select(-c(Day,Temp))%>% head()
#> Ozone Solar.R Wind Month #> 1 41 190 7.4 5 #> 2 36 118 8.0 5 #> 3 12 149 12.6 5 #> 4 18 313 11.5 5 #> 5 NA NA 14.3 5 #> 6 28 NA 14.9 5