remove_var | R Documentation |
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()
.
remove_var(x, ...)
remove_cols(x, ...)
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 |
x
, with variables specified in ...
removed.
mtcars %>% remove_var("disp", "cyl")
mtcars %>% remove_var(c("wt", "vs"))
mtcars %>% remove_var(drat:am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.