R/pmut.data.same.R

Defines functions pmut.data.same

Documented in pmut.data.same

#' Simple Check on Duplication
#'
#' This function checks if there is any duplicated column inside the data.
#'
#' @param DATA Object of class \code{data.frame} or \code{data.table}
#' @return A named bool vector indicating whether the column is duplicated
#'
#' @export
#'
#' @examples
#' pmut.data.same(data.frame(ggplot2::diamonds))


pmut.data.same <- function(DATA) {
  boolvec = duplicated(as.list(DATA))
  names(boolvec) = names(DATA)
  return(boolvec)
}
chengjunhou/pmut documentation built on May 23, 2019, 4:24 p.m.