am wondering why this issue is happening and if there is a fix for it. I create the following sql query below:
CompanyNames<-sqlQuery(connection,
paste("SELECT Companynm",
" FROM RiskMgm_Company",
" WHERE CompanyID = ParentID",
" ORDER BY Companynm"))
CompanyNames comes in the form of a database. Now no matter how I try or which way I convert it the selectInput below provides me with a list from 1 to 118 rather than the company names... Any idea why and how to fix?
output$CompNameSelector <- renderUI({
selectInput("compName","Company Name:",c(CompanyNames$Companynm))
})
Thanks!
The SQL query returns a data.frame object with 1 variable and 118 observations. All these observations are simply text. Performing
class(CompanyNames$Companynm)
provides a factor type