everything_except {matsindf} | R Documentation |
Get symbols for all columns except ...
Description
This convenience function performs a set difference between
the columns of .DF
and the variable names (or symbols) given in ...
.
Usage
everything_except(.DF, ..., .symbols = TRUE)
Arguments
.DF |
A data frame whose variable names are to be differenced. |
... |
A string, strings, vector of strings, or list of strings representing column names to be subtracted from the names of |
.symbols |
A boolean that defines the return type: |
Value
A vector of symbols (when .symbols = TRUE
) or
strings (when symbol = FALSE
) containing all variables names except those given in ...
.
Examples
DF <- data.frame(a = c(1, 2), b = c(3, 4), c = c(5, 6))
everything_except(DF, "a", "b")
everything_except(DF, "a", "b", symbols = FALSE)
everything_except(DF, c("a", "b"))
everything_except(DF, list("a", "b"))
[Package matsindf version 0.4.8 Index]