-1

, I'm working on a simple shiny app and I'm trying to create a drop-down list using one of the columns "Department" (which is a character atomic vector) in the excel data which I imported into RStudio, the code I'm using is as follows:

selectInput("select", "Select Department/Entity",
    choices = unique(Key_Risks["Department"]))

when I run the app, nothing appears in the drop-down list, the only thing that appears is "NA", not the department names!

Your support would be highly appreciated. Thanks,

  • 1
    Welcome to SO! It would be easier to help you if you provide [a minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). With just one line of code and no information on what kind of object `Key_Risks` is, it's hard to figure out what's the issue. – stefan May 29 '22 at 07:55

0 Answers0