unfrequence: Convert data

View source: R/rankManipulation.R

unfrequenceR Documentation

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.

See Also

frequence

Examples

data(quiz)
Y <- unfrequence(quiz$frequency)
Y


Rankcluster documentation built on Nov. 12, 2022, 9:05 a.m.