remove_var: Remove variables from a data frame

Description Usage Arguments Value Examples

View source: R/remove_vars.R

Description

This function removes variables from a data frame, and is intended to use within a pipe-workflow. remove_cols() is an alias for remove_var().

Usage

1
2
3

Arguments

x

A vector or data frame.

...

Character vector with variable names, or unquoted names of variables that should be removed from the data frame. You may also use functions like : or tidyselect's select_helpers.

Value

x, with variables specified in ... removed.

Examples

1
2
3
mtcars %>% remove_var("disp", "cyl")
mtcars %>% remove_var(c("wt", "vs"))
mtcars %>% remove_var(drat:am)

sjPlot/sjmisc documentation built on Oct. 13, 2018, 10:55 p.m.