switchFun {qAnalyst} | R Documentation |
Internal function to correct evident mispellings
Description
switchFun
returns the correct parse of the command given by the user, according to a specified context.
Usage
switchFun(type, argument)
Arguments
type |
The context of user input, either "chart" or "distribution". |
argument |
The user input. |
Details
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"
Value
Either a character containing the correct codification or the user input if there is no coded correction.
Note
This is an internal function.
Author(s)
Giorgio Spedicato
References
Internal function
See Also
Examples
switchFun(argument="x-bar", type="chart")
[Package qAnalyst version 0.6.4 Index]