get_ternary_class_id | R Documentation |
Helper function that checks if a value surpasses the given threshold either positively, negatively or not at all and returns a value indicating in which class (i.e. interval) it belongs.
get_ternary_class_id(value, threshold)
value |
numeric |
threshold |
numeric |
an integer. There are 3 cases:
1
: when value > threshold
-1
: when value < -threshold
0
: otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.