Complete preferences by adding unselected items as last place occurrances.
Source:R/pref_tools.R
pref_add_unranked.Rd
Complete preferences by adding unselected items as last place occurrances.
Arguments
- x
A vector of
preferences
.
Value
A new vector of preferences, with each selection starting with the
corresponding selections made in x
, but with all unranked items placed
last.
Examples
# Complete partial rankings by adding unranked items last
pref_add_unranked(preferences(c("a > b", "c > a", "b")))
#> [1] [a > b > c] [c > a > b] [b > a = c]