powered by
Remove Constant Columns
remove_constant(x, ...)# S4 method for ANY remove_constant(x, na.rm = FALSE, verbose = getOption("arkhe.verbose"))
# S4 method for ANY remove_constant(x, na.rm = FALSE, verbose = getOption("arkhe.verbose"))
An R object (should be a matrix or a data.frame).
matrix
data.frame
Currently not used.
A logical scalar: should NA values be stripped before the computation proceeds?
logical
NA
A logical scalar: should R report extra information on progress?
N. Frerebeau
Other data cleaning tools: clean_whitespace(), remove_Inf(), remove_NA(), remove_empty(), remove_zero(), replace_Inf(), replace_NA(), replace_empty(), replace_zero()
clean_whitespace()
remove_Inf()
remove_NA()
remove_empty()
remove_zero()
replace_Inf()
replace_NA()
replace_empty()
replace_zero()
## 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)
Run the code above in your browser using DataLab