b_select: Select/rename variables by name

Description Usage Arguments Value Author(s) See Also Examples

View source: R/select.R

Description

Mimics dplyr::select using base R and rlang

Usage

1
2
3
4
5
6
7
b_select(.data, ...)

## Default S3 method:
b_select(.data, ...)

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

Arguments

.data

data.frame

...

unquoted variable names or character names

Value

data.frame

Author(s)

Jonathan Sidi

See Also

quotation,quo_squash

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
airquality%>%
b_select(c(Day,Temp))%>%
head()

airquality%>%
b_select(c('Day','Temp'))%>%
head()

airquality%>%
b_select(-c(Day,Temp))%>%
head()

yonicd/bplyr documentation built on Feb. 24, 2020, 2 p.m.