Skip to contents

Complete preferences by adding unselected items as last place occurrances.

Usage

pref_add_unranked(x)

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]