R/read.R

Defines functions read_collection read_usage

read_collection <- function() {
  googlesheets4::read_sheet("1FPMlptmefZZ9wtmOdogWR4UVd-WEEWI7u0KztRPNJuA", sheet = "Collection") %>%
    janitor::clean_names() %>%
    dplyr::mutate_at(dplyr::vars(dplyr::contains("date")), as.Date)
}

read_usage <- function() {
  googlesheets4::read_sheet("1FPMlptmefZZ9wtmOdogWR4UVd-WEEWI7u0KztRPNJuA", sheet = "Usage") %>%
    janitor::clean_names()
}
sharlagelfand/makeapp documentation built on Dec. 18, 2019, 6:47 a.m.