Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

complete

Complete Orderings with the Missing Redundant Rank


Description

Given orderings with one rank missing, complete the ordering by assigning the remaining item(s) to the final rank.

Usage

complete(orderings, items)

Arguments

orderings

A data frame of orderings with one rank missing.

items

A vector of item names.

Value

A vector of the missing items, which will be a list if there are any ties.

Examples

# Orderings of 3 items, when only the best and worst are recorded
orderings <- data.frame(best = c("A", "B", "A"),
                        worst = c("C", "C", NA))
orderings$middle <- complete(orderings, items = c("A", "B", "C"))

PlackettLuce

Plackett-Luce Models for Rankings

v0.4.0
GPL-3
Authors
Heather Turner [aut, cre] (<https://orcid.org/0000-0002-1256-3375>), Ioannis Kosmidis [aut] (<https://orcid.org/0000-0003-1556-0302>), David Firth [aut] (<https://orcid.org/0000-0003-0302-2312>), Jacob van Etten [ctb] (<https://orcid.org/0000-0001-7554-2558>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.