rowDenseRank
Syntax
rowDenseRank(X, [ascending=true], [ignoreNA=true],
[percent=false])
Please see rowFunctions for the parameters and calculation rules.
Arguments
X is a matrix.
ascending (optional) is a Boolean value indicating whether to sort in ascending order. The default value is true.
ignoreNA (optional) is a Boolean value indicating whether NULL values are ignored in ranking and return NULL. When NULL values participate in ranking, NULL values return 0, which is the smallest value in the result.
percent (optional) is a Boolean value, indicating whether to display the returned rankings in percentile form. The default value is false.
Details
rowDenseRank
can be viewed as function denseRank applied on rows
instead of columns. It returns the consecutive rank of each element in each row.