#' Remove all singleton columns
#'
#' @param .x a tibble or data table with more than one row
#'
#' @return a tibble that may have fewer columns
#' @export
only_informative_columns <- function(.x) {
dplyr::select(.x, tidyselect::where(~dplyr::n_distinct(.) > 1))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.