Error function to stop the function if zero or more than one value is entered

stop_not_scalar_double(value_entered)

Arguments

value_entered

The value to be error-checked by the function

Examples

if (FALSE) {
stop_not_scalar(value_entered = age)
}