I have uploaded a .csv file in Shiny App using fileInput(). I wish to read the column names and show them as options/choices in selectInput(). How do I do it?
fileInput("file1", "Choose CSV File",
multiple = FALSE,
accept = c("text/csv",
"text/comma-separated-values,text/plain",
".csv")),
Also can we use the variables in server part of code inside the ui part?