R/filter_by_new.R

Defines functions filter_by_new

filter_by_new <- function(.data, filter = TRUE, date = attr(.data, "date")) {
  if (filter) dplyr::filter(.data, .data[["date_added"]] == date) else .data
}
jesse-smith/covidsms documentation built on Dec. 25, 2021, 4:24 a.m.