get.num {RGeostats}R Documentation

Ask for a number

Description

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.

Usage

get.num(question, default=NA, 
minimum=NA, maximum=NA)

Arguments

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.

Value

The answer to the question (when all the checks have been fulfilled successfully).


[Package RGeostats version 14.0.10 Index]