selectNumber {goCluster} | R Documentation |
This function generates a menu that allows the user to choose a number.
selectNumber(message, min, max)
message |
The message that will be shown together with the menu. |
min |
The minimal number that is allowed. |
max |
The maximal number that is allowed. |
selectNumber
displays the given message to the user and returns the
number the user chooses as integer
. This number needs to be greater than
or equal to min
as well as less than or equal to max
.
The number chosen by the user as integer
.
Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.
selectCore
.
selectDouble
.
selectOption
.
if(interactive()){ ## This example can only be run in an interactive mode selectNumber("Please choose a number between 0 and 10",1,9) }