switchFun {qAnalyst} | R Documentation |
switchFun
returns the correct parse of the command given by the user, according to a specified context.
switchFun(type, argument)
type |
The context of user input, either "chart" or "distribution". |
argument |
The user input. |
Within argument "chart", following mistakes are identified:
"XBAR", "X-BAR", "x-bar" for"xbar"
"range" for "r"
"sd" for "s"
"individuals" and "individual" for "i"
"moving range" for "mr"
Within argument "distribution", following mistakes are identified:
"normal", "normale", "dnorm" for "norm"
"dweibull" for "weibull"
"log-normal", "dlnorm" and "lognormal" for "lnorm"
Either a character containing the correct codification or the user input if there is no coded correction.
This is an internal function.
Giorgio Spedicato
Internal function
switchFun(argument="x-bar", type="chart")