Package index
-
read_preflib()
- Read Ordinal Preference Data From PrefLib
-
write_preflib()
- Write Ordinal Preference Data to PrefLib Formats
Operations on preferences
preferences
are a bit like character vectors in that a single element comprises a string of information. To operate on many preferences at once, a variety of tools are provided which facilitate basic operations.
-
pref_add_unranked()
- Complete preferences by adding unselected items as last place occurrances.
-
pref_blank()
- Check if a preference is blank.
-
pref_get_items()
- Get the name of the item(s) assigned a specific rank, e.g., first.
-
pref_get_rank()
- Get the rank assigned to a specific item in a set of preferences.
-
pref_keep()
- Keep only specified items from preferences.
-
pref_length()
- Check the length (number of rankings) of a preference.
-
pref_omit()
- Remove specified items from preferences.
-
pref_pop()
- Eliminate lowest (or highest) ranked items from preferences.
-
pref_rev()
- Reverse preference rankings
-
pref_trunc()
- Truncate preferences to a maximum number of ranks.
Summaries of preferences
Compute summaries on preferences, e.g., covariance matrices, rankings matrix, adjacency matrix and even compute an instant-runoff voting outcome.
-
pref_cov()
- Covariance matrix for preferences, calculated using the rankings matrix.
-
pref_irv()
- Compute the instant-runoff voting winner for a set of preferences.
-
pref_type()
- pref_type
-
ranking_matrix()
- Compute the Rankings Matrix for a vector of preferences
-
adjacency()
- Compute the Adjacency Matrix for a vector of preferences