View source: R/transformation_functions.R
splx_to_itvl | R Documentation |
Convert from simplex/compostional format to interval bounds
format. See also itvl_to_splx()
for the inverse transformation.
splx_to_itvl(simplex, min = NULL, max = NULL)
simplex |
A numeric vector that is a 2-simplex (3 elements that sum to 1) or a data frame where each of the rows is a 2-simplex. |
min |
Minimum of the original response scale. |
max |
Maximum of the original response scale. |
A numeric vector with 2 elements representing the lower and upper bounds of the interval response, or a data frame where each of the rows contains such a vector.
itvl_to_splx()
responses <- data.frame(rbind(c(.1,.5,.4), c(.3,.4,.3)))
splx_to_itvl(responses, min = 0, max = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.