Learn R Programming

ConsRank (version 2.1.5)

order2rank: Given an ordering, it is transformed to a ranking

Description

From ordering to rank. IMPORTANT: check which symbol denotes tied rankings in the X matrix

Usage

order2rank(X, TO = "{", TC = "}")

Value

a ranking or a matrix of rankings:

Rranking or matrix of rankings

Arguments

X

A ordering or a matrix containing orderings

TO

symbol indicating the start of a set of items ranked in a tie

TC

symbol indicating the end of a set of items ranked in a tie

Author

Antonio D'Ambrosio antdambr@unina.it

Examples

Run this code
data(APAred)
ord=rank2order(APAred) #transform rankings into orderings
ran=order2rank(ord) #transform the orderings into rankings

Run the code above in your browser using DataLab