Creates composition types from a vector of probabilities

generate_composition_levels(probs)

Arguments

probs

Named vector of probabilities

Value

Returns a named vector of 0s.

Details

Creates a named vector of all combinations for the names in probs, separated by a "/" and sorted by character length and then alphabetically

Examples

if (FALSE) { probs <- c("a" = 0.5, "b" = 0.3, "c" = 0.2) icer:::generate_composition_levels(probs = probs) #> a b c a/b a/c b/c a/b/c #> 0 0 0 0 0 0 0 }