R/dropcolumns.R

#' Simple function to remove columns that are only comprised of NA's
#' @param table table to remove NAs from
#' @return output table with no columns that are only NAs (trims columns)
#' @export
#'


dropcolumns <- function(table) {
    return(table[colSums(!is.na(table)) > 0])
}
econtijoch/Biomass-Workflow documentation built on May 15, 2019, 7:59 p.m.