douglasgscofield/fastrank: Ranking Integer and Numeric Vectors with Low Overhead

Provides rank functions for integer and numeric with less overhead as base R `rank`, as alternatives to calling `.Internal(rank(...))` which is forbidden within packages. In avoiding the overhead, fastrank functions impose constraints on the user. The R wrapper `fastrank` does a bit of type checking and type-specific dispatch, while the C functions `fastrank_int` and `fastrank_num` are available for integer and numeric vectors, respectively, via `.Call`, and do no error checking.

Getting started

Package details

AuthorDouglas G. Scofield
MaintainerDouglas G. Scofield <douglasgscofield@gmail.com>
LicenseGPL (>= 2)
Version0.1
URL https://github.com/douglasgscofield/fastrank
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("douglasgscofield/fastrank")
douglasgscofield/fastrank documentation built on May 15, 2019, 10:43 a.m.