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"))

iNZightTools documentation built on Oct. 12, 2023, 5:06 p.m.