Convert interval responses from interval bounds format to compostional/simplex format
Value
A numeric vector representing a 3-simplex if input is a vector, or a data frame where each row is a 3-simplex if input is a data frame.
See also
splx_to_itvl()
for the inverse transformation.
Examples
interval_responses <- data.frame(rbind(c(.1,.5), c(.4,.7)))
itvl_to_splx(interval_responses, min = 0, max = 1)
#> x_1 x_2 x_3
#> 1 0.1 0.4 0.5
#> 2 0.4 0.3 0.3