Learn R Programming

prefio (version 0.2.0)

Structures for Preference Data

Description

Convenient structures for creating, sourcing, reading, writing and manipulating ordinal preference data. Methods for writing to/from PrefLib formats. See Nicholas Mattei and Toby Walsh "PrefLib: A Library of Preference Data" (2013) .

Copy Link

Version

Install

install.packages('prefio')

Monthly Downloads

236

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Floyd Everest

Last Published

September 28th, 2025

Functions in prefio (0.2.0)

write_preflib

Write Ordinal Preference Data to PrefLib Formats
pref_trunc

Truncate preferences to a maximum number of ranks.
pref_type

pref_type
pref_rev

Reverse preference rankings
pref_cov

Covariance matrix for preferences, calculated using the rankings matrix.
pref_get_items

Get the name of the item(s) assigned a specific rank, e.g., first.
pref_keep

Keep only specified items from preferences.
pref_add_unranked

Complete preferences by adding unselected items as last place occurrances.
pref_irv

Compute the instant-runoff voting winner for a set of preferences.
pref_length

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

Compute the Adjacency Matrix for a vector of preferences
pref_blank

Check if a preference is blank.
pref_get_rank

Get the rank assigned to a specific item in a set of preferences.
pref_omit

Remove specified items from preferences.
prefio-package

prefio: Structures for Preference Data
pref_pop

Eliminate lowest (or highest) ranked items from preferences.
ranking_matrix

Compute the Rankings Matrix for a vector of preferences
preferences

Preferences Objects
read_preflib

Read Ordinal Preference Data From PrefLib