unfrequence function

Convert data

Convert data

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).

unfrequence(data)

Arguments

  • data: a matrix containing rankings and observation frequency.

Returns

a matrix containing all the rankings.

Examples

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

See Also

frequence

  • Maintainer: Quentin Grimonprez
  • License: GPL (>= 2)
  • Last published: 2022-11-12

Useful links