R/type_select.R

Defines functions type_select

Documented in type_select

#' Select type
#' 
#' 
#' @description  This function builded to help people select the different type
#' 
#' @param data the dateset
#' @param choices cases_new,deaths_new,recovered_new
#' 
#' @return  shiny
#' @author chenjie gong
#' 
#'
#'
#' @export

type_select  <- function( data, choices) {
  selecttype(data,
               choices = c("cases_new",
                           "deaths_new",
                           "recovered_new"), 
               selected = "cases_new"
  )
}
etc5523-2020/r-package-assessment-cgon0007 documentation built on Jan. 1, 2021, 1:12 a.m.