This convenience function performs a set difference between
the columns of .DF
and the variable names (or symbols) given in ...
.
The return value is a list of symbols.
everything_except(.DF, ..., .symbols = TRUE)
.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: |
a vector of symbols (when symbols = TRUE
) or strings (when symbol = FALSE
) containing all variables names except those given in ...
#> [[1]] #> c #>everything_except(DF, "a", "b", symbols = FALSE)#> [[1]] #> c #>#> [[1]] #> c #>#> [[1]] #> c #>