set_to_distr {DEXiR} | R Documentation |
Convert a DEXi value set to DEXi value distribution.
set_to_distr(set, length = 0)
set |
Normally a numeric vector containing integer numbers. |
length |
The required length of the resulting distribution vector. The actual length
is determined as |
A distribution object of length length
. Arguments that
are already distributions are returned "as is". Input vectors of length 0 and other types
of objects return NA
.
DEXiR-package, distribution, distr_to_set()
set_to_distr(c(1, 3, 4))
set_to_distr(c(1, 3, 4), length = 5)
set_to_distr(c(1, 3, 4), length = 0)