#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.