prank | R Documentation |
Function prank.integer64
projects the values [min..max]
via ranks
[1..n]
to [0..1]
.
qtile.integer64()
is the inverse function of 'prank.integer64' and
projects [0..1]
to [min..max]
.
prank(x, ...)
## S3 method for class 'integer64'
prank(x, method = NULL, ...)
x |
a integer64 vector |
... |
ignored |
method |
NULL for automatic method selection or a suitable low-level method, see details |
Function prank.integer64
is based on rank.integer64()
.
prank
returns a numeric vector of the same length as x
.
rank.integer64()
for simple ranks and qtile()
for the
inverse function quantiles.
x <- as.integer64(sample(c(rep(NA, 9), 1:9), 32, TRUE))
prank(x)
x <- x[!is.na(x)]
stopifnot(identical(x, unname(qtile(x, probs=prank(x)))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.