Learn R Programming

PerMallows (version 1.14)

order.ratings: Convert rating to permutation

Description

This function is given a collection of ratings and converts each row to a permutation

Usage

order.ratings(ratings)

Value

A matrix in which each row is the corresponding permutation of the items

Arguments

ratings

a matrix in which each row is a vector of ratings of several items

Examples

Run this code
order.ratings(c(0.1, 4, 0.5, -4))

Run the code above in your browser using DataLab