Description Usage Arguments Value Author(s) Examples
This function generates all the possible incomplete rankings of k elements out of n complete elements. E.g. c(1, 2, NA) is an incomplete ranking out with 2 non-missing elements of 3 elements
1 | incomplete.rankings(n, k)
|
n |
number of complete elements |
k |
number of non-missing elements in the incomplete ranking |
a matrix each of whose column is a possible incomplete ranking
Li Qinglong <liqinglong0830@163.com>
1 | incomplete.rankings(5, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.