Shiny Application for Linear Regression with dynamic variable dropdown based on user upload
问题 As the title describes, I'm simply trying to create a shiny application that allows the user to generate linear regression plots based on an imported csv file. After importing the file the dropdown for the variables of interest should be dynamically updated. As the code below shows, I'm able to accomplish that with mtcars but I'm not able to do the same with an imported files that would have different dependent and independent variables . Thank you for your help data(mtcars) cols <- sort