R/drop_empty_cols.R

Defines functions drop_empty_cols

drop_empty_cols <- function(dt,
                            verbose=TRUE){
    for(col in names(dt)){
        if(all(is.na(dt[[col]]))){
            messager("Removing:",col,v=verbose)
            dt[[col]] <- NULL
        }
    }
}
neurogenomics/PeakyFinders documentation built on Oct. 14, 2024, 3:09 p.m.