check.param | R Documentation |
Internal-use function for quality checking individual parameters
check.param(
param = NULL,
type = c("req", "num", "unit", "uniti", "unitii", "pos", "int", "bool", "vals", "min",
"mini", "vec", "mat", "sum"),
valslist = NULL,
min = NULL
)
param |
The parameter being checked. |
type |
The expected type of parameter: one of "req", "num", "unit(i)(i)", "pos", "int", "bool", "vals", "min(i)", "vec", "mat", "sum". |
valslist |
If the type is "vals", a list of allowed values. |
min |
If the type is "min" or "mini", a lower bound. |
If the check passes, returns nothing. If the check does not pass, throw an error.
power <- 0.8
check.param(power, "unit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.