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

View source: R/order2rank.R

order2rankR Documentation

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 = "}")

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

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


ConsRank documentation built on May 29, 2024, 7:55 a.m.