encode_unit | R Documentation |
Class for converting parameter values back and forth to the unit range
encode_unit(x, value, direction, ...)
## S3 method for class 'quant_param'
encode_unit(x, value, direction, original = TRUE, ...)
## S3 method for class 'qual_param'
encode_unit(x, value, direction, ...)
x |
A |
value |
The original values should be either numeric or character. When
converting back, these should be on |
direction |
Either "forward" (to |
original |
A logical; should the values be transformed into their natural units. |
For integer parameters, the encoding can be lossy.
A vector of values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.