R/country_select.R

Defines functions countryInput

Documented in countryInput

#' Country Select Input in table
#'
#' 
#'
#' @author chenjie gong
#'
#' @param x A country names
#' 
#' 
#' 
#' @export
#'
#' 
#' 
#' 
#' 
#' @examples
#' \dontrun{
#' countryInput( x = coronavirus$location)
#' }
#'
#'
#'
#'
#'
countryInput <- function(x) {
  
  shiny::selectInput(
                     label = label,
                     choices = sort(unique(x)),
                     selected = "Guinea")
}
etc5523-2020/r-package-assessment-cgon0007 documentation built on Jan. 1, 2021, 1:12 a.m.