powered by
Check the length (number of rankings) of a preference.
pref_length(x)
The number of items listed on each of the preferences.
A vector of preferences.
preferences
pref_length(preferences(c("a > b > c", "", "b > c")))
Run the code above in your browser using DataLab