Learn R Programming

PerMallows (version 1.14)

freq.matrix: Compute the frequency matrix

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

freq.matrix(perm)

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

Arguments

perm

a permutation or a collection of them

Examples

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

Run the code above in your browser using DataLab