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].
Details
Function prank.integer64 is based on rank.integer64().
See also
rank.integer64() for simple ranks and qtile() for the
inverse function quantiles.
Examples
x <- as.integer64(sample(c(rep(NA, 9), 1:9), 32, TRUE))
prank(x)
#> [1] NA NA 0.22222222 0.83333333 0.05555556 0.97222222
#> [7] NA 0.97222222 NA 0.05555556 0.63888889 NA
#> [13] 0.44444444 NA 0.88888889 0.44444444 0.75000000 NA
#> [19] 0.05555556 NA 0.22222222 NA NA 0.63888889
#> [25] 0.22222222 0.44444444 NA 0.44444444 0.44444444 NA
#> [31] 0.75000000 NA
x <- x[!is.na(x)]
stopifnot(identical(x, unname(qtile(x, probs=prank(x)))))