freq.matrix: Compute the frequency matrix

Description Usage Arguments Value Examples

View source: R/PerMallows.R

Description

Compute the first order marginal probability. In other words, given at least one permutation, calculate the proportion of them that have each item in each position

Usage

1

Arguments

perm

a permutation or a collection of them

Value

A matrix with n rows and n columns with the proportion of the permutations in the input that have each item in each position

Examples

1
freq.matrix(c(1,3,2,4,5))

PerMallows documentation built on May 2, 2019, 6:14 a.m.