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 Aug. 11, 2025, 1:07 a.m.