hutilscpp v0.1.0


Monthly downloads



Miscellaneous Functions in C++

Provides utility functions that are simply, frequently used, but may require higher performance that what can be obtained from base R. Incidentally provides support for 'reverse geocoding', such as matching a point with its nearest neighbour in another array. Used as a complement to package 'hutils' by sacrificing compilation or installation time for higher running speeds. The name is a portmanteau of the author and 'Rcpp'.


Coverage status AppVeyor build status


Under development

Functions in hutilscpp

Name Description
cumsum_reset Cumulative sum unless reset
are_even Are even
which_true_onwards At which point are all values true onwards
bench_system_time Evaluate time of computation
pmaxC Parallel maximum/minimum
pminC Parallel minimum
helper Helper
do_pminV Parallel maximum
AnyWhich Quickly verify (and locate) the existence of a breach.
anyOutside Are any values outside the interval specified?
poleInaccessibility Find a binary pole of inaccessibility
range_rcpp Range C++
do_pmaxV Parallel maximum in C++
do_pminC Parallel maximum
squish Squish into a range
which_first Where does a logical expression first return TRUE?
hutilscpp-package hutilscpp: Miscellaneous Functions in C++
match_nrst_haversine Match coordinates to nearest coordinates
do_pmaxC Internal pmaxC helpers
No Results!

Last month downloads


License GPL-2
Encoding UTF-8
LazyData true
LinkingTo Rcpp
RoxygenNote 6.1.1
NeedsCompilation yes
Packaged 2019-01-28 17:14:07 UTC; hughp
Repository CRAN
Date/Publication 2019-02-03 15:43:19 UTC

Include our badge in your README