Learn R Programming

Rankcluster (version 0.98.0)

unfrequence: Convert data

Description

This function takes in input a matrix in which the m first columns are the different observed ranks and the last column contains the observation frequency, and returns a matrix containing all the ranks (ranks with frequency>1 are repeated).

Usage

unfrequence(data)

Value

a matrix containing all the rankings.

Arguments

data

a matrix containing rankings and observation frequency.

See Also

frequence

Examples

Run this code
data(quiz)
Y <- unfrequence(quiz$frequency)
Y

Run the code above in your browser using DataLab