Learn R Programming

StatMethRank (version 1.3)

case2freq: Convert raw ranking data(case form) to ranking data with rank frequencies

Description

Convert raw ranking data(case form) to ranking data with rank frequencies

Usage

case2freq(x)

Arguments

x
A data frame or a matrix(case form), each row is a rank.

Value

A data frame, each row contains a rank and the corresponding frequency.

Examples

Run this code
data(APA)
cases = freq2case(APA, freq.col = 1)
freqs = case2freq(cases)

Run the code above in your browser using DataLab