tabulaterows | R Documentation |

Given a sample of preference rankings, it compute the frequency associated to each ranking

```
tabulaterows(X, miss = FALSE)
```

`X` |
a N by M data matrix containing N judges judging M objects |

`miss` |
TRUE if there are missing data (either partial or incomplete rankings): default: FALSE |

a "list" containing the following components:

X | the unique rankings | |

Wk | the frequency associated to each ranking | |

tabfreq | frequency table |

Antonio D'Ambrosio antdambr@unina.it

```
data(Idea)
TR<-tabulaterows(Idea)
FR<-TR$Wk/sum(TR$Wk)
RF<-cbind(TR$X,FR)
colnames(RF)<-c(colnames(Idea),"fi")
#compute modal ranking
maxfreq<-which(RF[,6]==max(RF[,6]))
rank2order(RF[maxfreq,1:5],items=colnames(Idea))
#
data(APAred)
TR<-tabulaterows(APAred)
#
data(APAFULL)
TR<-tabulaterows(APAFULL)
CR1<-consrank(TR$X,wk=TR$Wk)
CR2<-consrank(TR$X,wk=TR$Wk,algorithm="fast",itermax=15)
CR3<-consrank(TR$X,wk=TR$Wk,algorithm="quick")
```

ConsRank documentation built on March 31, 2023, 7:25 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.