This function helps us get the select Input function from the shiny package using the two arguments id and x, using just the two arguments.The purpose of this function is to provide a quick select input for different values in the column.

stateInput(id, x)

Arguments

id

The input ID of the select Input that is passed to the app by the user.

x

The column in the dataframe that contains the country names.

Author

Varsha Ujjinni Vijay Kumar

Examples

if (FALSE) { stateInput(id = "state", x = usa$state) }