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.