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

get_rankings

Rankings that extend a partial ranking


Description

Returns all possible rankings that extend a partial ranking.

Usage

get_rankings(data, force = F)

Arguments

data

List as returned by exact_rank_prob when run with only.results = FALSE

force

Logical scalar. Stops function if the number of rankings is too large. Only change to TRUE if you know what you are doing

Details

The ith row of the matrix contains the rank of node i in all possible rankings that are in accordance with the partial ranking P. The lowest rank possible is associated with 1.

Value

A matrix containing ranks of nodes in all possible rankings.

Author(s)

David Schoch

Examples

P <- matrix(c(0,0,1,1,1,0,0,0,1,0,0,0,0,0,1,rep(0,10)),5,5,byrow=TRUE)
P
res <- exact_rank_prob(P,only.results = FALSE)
get_rankings(res)

netrankr

Analyzing Partial Rankings in Networks

v0.3.0
MIT + file LICENSE
Authors
David Schoch [aut, cre], Julian Müller [ctb]
Initial release

We don't support your browser anymore

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