Learn R Programming

Rankcluster (version 0.93.1)

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)

Arguments

data
a matrix containing rankings and observation frequency.

Value

a matrix containing all the rankings.

Examples

Run this code
data(quiz)
Y=unfrequence(quiz$frequency)
Y

Run the code above in your browser using DataLab