checkPar | R Documentation |
Check length/names for a vector of values for parameters or bounds.
checkPar(value, parN, parNames, default)
value |
Numeric vector of values. |
parN |
Number of wanted values. |
parNames |
character. Names of the wanted values. |
default |
numeric. Default value. |
A numeric vector.
checkPar(value = c(1, 2), parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
checkPar(value = NULL, parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
checkPar(value = c("sigma2" = 100, "theta" = 1),
parN = 2L, parNames = c("theta", "sigma2"),
default = 1.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.