select columns

replyr_select(.data, colnames)

Arguments

.data

data object to work on

colnames

character column names

Examples

d <- data.frame(Sepal_Length= c(5.8,5.7), Sepal_Width= c(4.0,4.4), Species= 'setosa', rank=c(1,2)) replyr_select(d, c('Sepal_Length', 'Species'))
#> Sepal_Length Species #> 1 5.8 setosa #> 2 5.7 setosa