View source: R/data_cleaners.R
interesting_cols | R Documentation |
Find the columns that have more than one value
interesting_cols(x, keep_anyway = character(0), ...)
x |
The object (typically a data.frame) with columns to check. |
keep_anyway |
A character vector of columns to keep even if they only have a single value. |
... |
ignored (for now) |
An object of the same class as x
with boring columns
taken out and the duplicated values placed in an attribute called
"boring"
.
interesting_cols(data.frame(A=1:2, B=2))
attr(interesting_cols(data.frame(A=1:2, B=2)), "boring")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.