parse_profile_of_rankings: Parse profile of rankings

View source: R/por.R

parse_profile_of_rankingsR Documentation

Parse profile of rankings

Description

Create profile of rankings using its string representation.

Usage

parse_profile_of_rankings(string)

Arguments

string

A string containing a representation of the ranking in the form: "number_of_voters_r1, ranking1, number_of_voters_r2, ranking2, ..., number_of_voters_rN, rankingN" The operators used for representing that one candidate is preferred to another are ≻ and >. For representing ties use ~.

Value

A profile of rankings object containing the representation.

Examples

parse_profile_of_rankings("6, a ≻ b ≻ c ≻ d,
                           5, b ≻ c ≻ a ≻ d,
                           3, c ≻ d ≻ a ≻ b")

noeliarico/consensus documentation built on March 18, 2023, 12:37 p.m.