cnd | R Documentation |
Function to create a condition for ParameterSet dependencies
for use in the $deps
public method.
cnd(type, value = NULL, id = NULL, error = NULL)
type |
( |
value |
( |
id |
( |
error |
( |
This function should never be used outside of creating a condition for
a dependency in a ParameterSet. Currently the following conditions are
supported based on the type
argument, we refer to the parameter depended on
as in the independent parameter, and the other as the dependent:
"eq"
- If value
is not NULL
then checks if the independent parameter
equals value
, otherwise checks if the independent and dependent parameter
are equal.
"neq"
- If value
is not NULL
then checks if the independent parameter
does not equal value
, otherwise checks if the independent and dependent
parameter are not equal.
"gt"/"lt"
- If value
is not NULL
then checks if the independent
parameter is greater/less than value
, otherwise checks if the independent
parameter is greater/less than the dependent parameter.
"geq"/"leq"
- If value
is not NULL
then checks if the independent
parameter is greater/less than or equal to value
, otherwise checks if the
independent parameter is greater/less than or equal to the dependent
parameter.
"any"
- If value
is not NULL
then checks if the independent parameter
equals any of value
, otherwise checks if the independent parameter equals
any of dependent parameter.
"nany"
- If value
is not NULL
then checks if the independent
parameter does not equal any of value
, otherwise checks if the independent
parameter does not equal any of dependent parameter.
"len"
- If value
is not NULL
then checks if the length of the
independent parameter equals value
, otherwise checks if the independent
and dependent parameter are the same length.
"inc"
- Checks if the parameter is increasing.
"sinc"
- Checks if the parameter is strictly increasing.
"dec"
- Checks if the parameter is decreasing.
"sdec"
- Checks if the parameter is strictly decreasing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.