I'm in the midst of building a Shiny application that shows COVID-19 statistics. Right now, I'm trying to set the default selectInput; selected == "World", with data$location, but for some reason it's setting itself to the first location in the data frame, being "Afghanistan".
selectInput(
"country",
"Country:",
choices =
data$location,
selected =
data$location == "World"
)
Thank you very much.