frequence: Convert data storage

Description Usage Arguments Value Author(s) Examples

View source: R/RankFunctions.R

Description

This function takes in input a matrix containing all the observed ranks (a rank can be repeated) and returns a matrix containing all the different observed ranks with their observation frequencies (in the last column).

Usage

1
frequence(X, m = ncol(X))

Arguments

X

a matrix containing ranks.

m

a vector with the size of ranks of each dimension.

Value

A matrix containing each different observed ranks with its observation frequencies in the last column.

Author(s)

Quentin Grimonprez

Examples

1
2
3
X=matrix(1:4,ncol=4,nrow=5,byrow=TRUE)
Y=frequence(X)
Y

Rankcluster documentation built on May 30, 2017, 4:46 a.m.

Search within the Rankcluster package
Search all R packages, documentation and source code