Learn R Programming

RMallow (version 1.1)

AllKendall: All Kendall's distances between two sets of rankings.

Description

Calculates all of the Kendall's distances between two different sets of rankings.

Usage

AllKendall(r, seqs, data.info = NULL)

Arguments

r

One set of sequences.

seqs

Another set of sequences.

data.info

Optional argument, a 0/1/NA matrix specifying all of the relevant information to calculate Kendall's difference for "r". Used for efficiency in "Solve".

Value

Matrix where output[i, j] represents the distance from sequence "i" in "r" to sequence "j" in "seqs".

Examples

Run this code
# NOT RUN {
data1 <- do.call("rbind", list(1:5, 5:1, c(3, 2, 1, 4, 5)))
data2 <- do.call("rbind", list(1:5, 5:1))
# AllKendall(data1, data2)
# }

Run the code above in your browser using DataLab