Learn R Programming

iNZightTools (version 2.0.1)

select_vars: Select variables from a dataset

Description

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

Usage

select_vars(data, keep)

Value

a data frame with tidyverse code attribute

Arguments

data

the dataset

keep

vector of variable names to keep

Author

Tom Elliott, Zhaoming Su

Examples

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

Run the code above in your browser using DataLab