remove_constant {arkhe} | R Documentation |
Remove Constant Columns
Description
Remove Constant Columns
Usage
remove_constant(x, ...)
## S4 method for signature 'ANY'
remove_constant(x, na.rm = FALSE, verbose = getOption("arkhe.verbose"))
Arguments
x |
An R object (should be a |
... |
Currently not used. |
na.rm |
A |
verbose |
A |
Author(s)
N. Frerebeau
See Also
Other data cleaning tools:
clean_whitespace()
,
remove_Inf()
,
remove_NA()
,
remove_empty()
,
remove_zero()
,
replace_Inf()
,
replace_NA()
,
replace_empty()
,
replace_zero()
Examples
## Create a data.frame
X <- data.frame(A = 1, B = 1:3)
X
remove_constant(X)
## Add NA
X[1, 1] <- NA
remove_constant(X)
remove_constant(X, na.rm = TRUE)
[Package arkhe version 1.7.0 Index]