Adding data to drop down

Hi Everyone,

Basically I have 2 R shiny scripts, in first Script I created a dropdown with two years i.e. 2017, 2018
The first R shiny script belongs to 2018 data, second R shiny script belongs to 2017

So , how can I link my two scripts to produce in the dropdown ? In the sense if I choose 2017 it has to show the output of second script and If I choose 2018 it has to choose first script.. is there any way to do this

Please suggest it will be very helpful

Thank you