Learn R Programming

mau (version 0.4.0)

borda_count: Borda count

Description

Rank aggregation with the Borda count method

Usage

borda_count(R, v = NULL)

Value

Vector with aggregated ranking

Arguments

R

matrix with rankings

v

vector of votes for each ranking

Author

Pedro Guarderas pedro.felipe.guarderas@gmail.com

Examples

Run this code
m <- 10
n <- 5
R <- matrix( runif( m * n ), m, n )
v <- sample( 50:100, n )
r <- borda_count( R, v )

Run the code above in your browser using DataLab