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] 0.70833333 0.45833333 NA NA NA NA
#> [7] NA NA NA 1.00000000 NA 0.45833333
#> [13] NA NA NA 0.25000000 0.70833333 0.70833333
#> [19] 0.25000000 0.70833333 NA NA 0.91666667 NA
#> [25] 0.00000000 0.25000000 NA NA NA NA
#> [31] 0.08333333 NA
x <- x[!is.na(x)]
stopifnot(identical(x, unname(qtile(x, probs=prank(x)))))