I have a data frame that contains the following columns. Partner & Contact Person.
Partner <- c("Google", "Microsoft", "Apple","Amazon")
ContactPerson <- c("Andrew","Mary","John","Barbara")
DF <- data.frame(Partner, ContactPerson)
# Create a variable called Partner Organisation
PartnerOrg <- DF$Partner
In flexdashboard, I'd like a dynamic functionality, such that when a person selects Google under the as a selectInput function, a render outbox output of Andrew appears below the dropdown menu. Below is the code in my rmd file in the sidebar of my flexdashboard
selectInput(
"Select", label = h5("Select partner organisation"),
choices= PartnerOrg,
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
function(input, output) {
# You can access the value of the widget with input$select, e.g.
output$value <- renderPrint({ input$select })
}
When I run the rmd file to load the dashboard, I get an error "Error: argument is not interpretable as logical"
How do I go about this?
