#' Removes SID duplicates
#'
#' @param df a tibble of dues data
#'
#' @return a tibble of rows with unique SID values
#' @export
#'
#' @examples
step_sid <- function(df, staff) {
staff_SID <-
staff %>%
pull(SID)
df <-
df %>%
filter(!SID %in% staff_SID) %>%
group_by(.data$SID) %>%
arrange(.data$MD_Number) %>%
arrange(desc(.data$InvoiceDate)) %>%
slice_max(n = 1, with_ties = FALSE, order_by = .data$MD_Number) %>%
ungroup() %>%
return()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.