select_vars: Select variables from a dataset

View source: R/select_vars.R

select_varsR Documentation

Select variables from a dataset

Description

Select a (reordered) subset of variables from a subset.

Usage

select_vars(data, keep)

Arguments

data

the dataset

keep

vector of variable names to keep

Value

a data frame with tidyverse code attribute

Author(s)

Tom Elliott, Zhaoming Su

Examples

select_vars(iris, c("Sepal.Length", "Species", "Sepal.Width"))

iNZightVIT/iNZightTools documentation built on May 4, 2024, 6:20 a.m.