R/newdate.R

Defines functions newdate

Documented in newdate

#' @name newdate
#' 
#' @title Reactive function of southeast dataset
#'
#' @description This function refactor the reactive function that takes value from date range input 
#'
#'
#' @export
library(shiny)
library(dplyr)
library(magrittr)
newdate <- function(input){
  shiny::reactive({
   shiny::req(input$range)
  southeastcovid::southeast %>% dplyr::filter(dplyr::between(date, input$range[1], input$range[2]))
})
}
etc5523-2020/r-package-assessment-whysptra documentation built on Jan. 1, 2021, 1:13 a.m.