rinv: Inverse of a ranking dataset.

View source: R/rinv.R

rinvR Documentation

Inverse of a ranking dataset.

Description

Computing the inverse of a summarized (or aggregated) ranking dataset. The function rankagg can be used to created a summarized ranking dataset from individual rankings.

Usage

rinv(dset)

Arguments

dset

a ranking dataset

Value

Return the dataset which is the orderings of the original ranking data.

Author(s)

Paul H. Lee and Philip L. H. Yu

Examples

## create an artificial dataset
X1 <- c(1,1,2,2,3,3)
X2 <- c(2,3,1,3,1,2)
X3 <- c(3,2,3,1,2,1)
n <- c(6,5,4,3,2,1)
test <- data.frame(X1,X2,X3,n)

## compute the inverse of the artificial dataset
## rinv(test)

pmr documentation built on June 24, 2022, 5:06 p.m.