Description Usage Arguments Value Examples
Validate parameter values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | is.param.valid(param, value)
## Default S3 method:
is.param.valid(param, value)
## S3 method for class 'param.discrete'
is.param.valid(param, value)
## S3 method for class 'param.real'
is.param.valid(param, value)
## S3 method for class 'param.distributed'
is.param.valid(param, value)
## S3 method for class 'param.distr.int'
is.param.valid(param, value)
## S3 method for class 'param.fixed'
is.param.valid(param, value)
|
param |
An object of type 'param' |
value |
A vector of values to validate |
A logical vector indicating if value
was valid.
1 2 3 4 | p <- param.discrete(c('heads', 'tails'))
is.param.valid(p, 'heads') # true
is.param.valid(p, 'tails') # true
is.param.valid(p, 'neither heads nor tails') # false
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.