Learn R Programming

prefio (version 0.2.0)

pref_length: Check the length (number of rankings) of a preference.

Description

Check the length (number of rankings) of a preference.

Usage

pref_length(x)

Value

The number of items listed on each of the preferences.

Arguments

x

A vector of preferences.

Examples

Run this code
pref_length(preferences(c("a > b > c", "", "b > c")))

Run the code above in your browser using DataLab