R/Drop_NA_column_names.R

Defines functions drop_na_column_names

Documented in drop_na_column_names

#' Drop NA column names
#'
#' Deletes columns whose name is NA or whose name is empty
#'
#' @param x dataframe
#'
#' @return dataframe without columns that are NA
#' @export
drop_na_column_names <- function(x) {
  return(x[!is.na(names(x)) & !(names(x) == "")])
}

Try the vvauditor package in your browser

Any scripts or data that you put into this service are public.

vvauditor documentation built on May 29, 2024, 12:20 p.m.