Description Usage Arguments Details Value
View source: R/partialOrders.R
Compares all rows of a numeric matrix or data frame X
with respect to the componentwise order. A row X[i, ]
is smaller or
equal to a row X[j, ]
in the componentwise order, if X[i, k] <=
X[j, k]
for k = 1, ..., ncol(X)
.
1 | compOrd(X)
|
X |
a numeric matrix or a data frame containing numeric or ordered factor variables with at least two columns. |
The columns of X
are sorted sequentially: First all constraints
based on only the first column X[, 1]
are activated (set TRUE
),
then constraints are dropped based on the orders of the remaining columns.
This avoids nrow(X)^2 / 2
pairwise comparisons.
A list containing
|
a two-column matrix giving all pairs of indices
|
|
a matrix of the columnwise orders of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.