selectNumber {goCluster}R Documentation

A menu for choosing an integer

Description

This function generates a menu that allows the user to choose a number.

Usage

selectNumber(message, min, max)

Arguments

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.

Details

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.

Value

The number chosen by the user as integer.

Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

See Also

selectCore. selectDouble. selectOption.

Examples

## This example needs to be commented out since it requires user input
## and would prevent R CMD check from running. Please remove the comment
## in the following line to run the example.

## selectNumber("Please choose a number between 0 and 10",1,9)

[Package goCluster version 1.0.0 Index]