preferred_choice.Rd
Make a ranked choice
preferred_choice(x, preferences, default = 1)
Named vector of possible choices
Ranked vector of names of x
x
Element of x if none of preferences are names of x
preferences