get.num {RGeostats} | R Documentation |
This procedure can be used to ask the user to enter a numeric value. It includes the management of the default value and of the admissibility bounds.
get.num(question, default=NA, minimum=NA, maximum=NA)
question |
Texte of the question that must be asked interactively |
default |
Default value. If provided, the value is quoted between parentheses, after the text of the question |
minimum |
Lower admissible bound (included). If the user's answer is (strictly) smaller than this lower bound, a message is issued and the question is asked again. |
maximum |
Upper admissible bound (included). If the user's answer is (strictly) smaller than this upper bound, a message is issued and the question is asked again. |
The answer to the question (when all the checks have been fulfilled successfully).