rank.integer64 | R Documentation |
Returns the sample ranks of the values in a vector. Ties (i.e., equal values) are averaged and missing values propagated.
## S3 method for class 'integer64'
rank(x, method = NULL, ...)
x |
a integer64 vector |
method |
NULL for automatic method selection or a suitable low-level method, see details |
... |
ignored |
This function automatically chooses from several low-level functions considering the size of x
and the availability of a cache.
Suitable methods are sortorderrnk
(fast ordering)
and orderrnk
(memory saving ordering).
A numeric vector of the same length as x
.
Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>
order.integer64
, rank
and prank
for percent rank.
x <- as.integer64(sample(c(rep(NA, 9), 1:9), 32, TRUE))
rank.integer64(x)
stopifnot(identical(rank.integer64(x), rank(as.integer(x)
, na.last="keep", ties.method = "average")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.