#' @export
#' @importFrom dplyr group_by filter semi_join tally n
show_duplicates <- function (.data, ...) {
grouped <- group_by(.data, ...)
dupes <- filter(tally(grouped), n > 1)
semi_join(.data, dupes)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.