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

Description Usage Arguments Value Author(s) Examples

View source: R/order2rank.R

Description

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

Usage

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

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

Value

a ranking or a matrix of rankings:

R ranking or matrix of rankings

Author(s)

Antonio D'Ambrosio antdambr@unina.it

Examples

1
2
3
data(APAred)
ord=rank2order(APAred) #transform rankings into orderings
ran=order2rank(ord) #transform the orderings into rankings

ConsRank documentation built on Sept. 28, 2021, 5:07 p.m.