Learn R Programming

iNZightTools (version 1.13.0)

selectVars: Select variables from a dataset

Description

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

Usage

selectVars(.data, keep)

Value

a data frame with tidyverse code attribute

Arguments

.data

the dataset

keep

vector of variable names to keep

Author

Tom Elliott

Examples

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

Run the code above in your browser using DataLab