#' Selects columns and get the distinct values back
#' @import dplyr
#' @export
select_distinct <-
function(dataframe, ...) {
vars <- enquos(...)
dataframe %>%
dplyr::select(!!!vars) %>%
dplyr::distinct()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.