View source: R/dplyr_extensions.R
discard_redundant | R Documentation |
Removes variables that do not vary in value
discard_redundant(D, except, ...)
## Default S3 method:
discard_redundant(D, except = c())
## S3 method for class 'tbl_clu'
discard_redundant(object, except = c())
## S3 method for class 'tbl_coef'
discard_redundant(object, except = c())
## S3 method for class 'tbl_post_pred'
discard_redundant(object, except = c())
## S3 method for class 'tbl_predicted'
discard_redundant(object, except = c())
## S3 method for class 'tbl_post'
discard_redundant(object, except = c())
D |
data frame |
except |
vector of column names to keep |
data frame
data frame
Martin Schmettow all variables that have a constant value are removed from a data frame
Martin Schmettow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.