Learn R Programming

explore (version 1.3.4)

drop_var_by_names: Drop variables by name

Description

Drop variables by name

Usage

drop_var_by_names(data, var_names)

Value

Data frame

Arguments

data

Data frame

var_names

Vector of variable names (as string)

Examples

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

Run the code above in your browser using DataLab