Remove empty rows and columns and constant column
Examples
data <- readRDS(system.file("extdata", "test_df.RDS", package = "cleanepi"))
# introduce an empty column
data$empty_column <- NA
# remove the constant columns, empty rows and columns
dat <- remove_constants(
data = data,
cutoff = 1
)
# check the report to see what has happened
report <- attr(dat, "report")
summary(report)
#> Length Class Mode
#> empty_columns 1 -none- character
#> constant_columns 1 -none- character