random_profile_of_rankings: Create a random profile of rankings

View source: R/por.R

random_profile_of_rankingsR Documentation

Create a random profile of rankings

Description

Useful for testing purposes

Usage

random_profile_of_rankings(
  ncandidates = 4,
  nvoters = 10,
  seed = NULL,
  withties = FALSE,
  cnames = NULL,
  distinct = NULL,
  distribution = "norm"
)

Arguments

ncandidates

Number of candidates. Default is 4.

nvoters

Number of voters. Default is 10.

seed

To fix a seed to replicate the results. Default is NULL.

withties

Indicates whether the profile created can contain ties. Default is FALSE.

cnames

Names of the candidates

distinct

Num

distribution

norm or uniform

Value

A profile of rankings


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