dataprofessor / code

Compilation of R and Python programming codes on the Data Professor YouTube channel.
http://youtube.com/dataprofessor
916 stars 1.43k forks source link

Update app.R #15

Open shobha-nosimpler opened 2 years ago

shobha-nosimpler commented 2 years ago

Modified the server code to create datasetInput using eventReactive() function that creates a data frame for predictor variables to be updated in the event of hitting the submit button; as such, there is no need to create a csv file for test dataset. The reactive code in both, the text box and table, also get triggered upon event.

shobha-nosimpler commented 2 years ago

Hi Chanin! I'm new to Shiny and find your videos very useful. I've used eventReactive function in server code to create a data frame for test dataset that gets updated with UI input values upon the event of hitting the submit button; hence there is no need to create csv file for the input values.