Package: hutilscpp 0.11.0

Hugh Parsonage

hutilscpp: 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'.

Authors:Hugh Parsonage [aut, cre], Simon Urbanek [ctb]

hutilscpp_0.11.0.tar.gz
hutilscpp_0.11.0.zip(r-4.7)hutilscpp_0.11.0.zip(r-4.6)hutilscpp_0.11.0.zip(r-4.5)
hutilscpp_0.11.0.tgz(r-4.6-x86_64)hutilscpp_0.11.0.tgz(r-4.6-arm64)hutilscpp_0.11.0.tgz(r-4.5-x86_64)hutilscpp_0.11.0.tgz(r-4.5-arm64)
hutilscpp_0.11.0.tar.gz(r-4.7-arm64)hutilscpp_0.11.0.tar.gz(r-4.7-x86_64)hutilscpp_0.11.0.tar.gz(r-4.6-arm64)hutilscpp_0.11.0.tar.gz(r-4.6-x86_64)
hutilscpp_0.11.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
hutilscpp/json (API)
NEWS

# Install 'hutilscpp' in R:
install.packages('hutilscpp', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hughparsonage/hutilscpp/issues

Uses libs:
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openmp

5.77 score 9 stars 2 packages 109 scripts 339 downloads 62 exports 4 dependencies

Last updated from:f323b91884. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK170
linux-devel-x86_64OK159
source / vignettesOK182
linux-release-arm64OK187
linux-release-x86_64OK154
macos-release-arm64OK160
macos-release-x86_64OK270
macos-oldrel-arm64OK149
macos-oldrel-x86_64OK226
windows-develOK154
windows-releaseOK468
windows-oldrelOK192
wasm-releaseOK101

Exports:abs_diffallNAand3and3sanyOutsideare_evenas_integer_if_safebench_system_timecharacter2integercoalesce0COALESCE0Commacount_logicalcumsum_resetdiamdivisibledivisible16divisible2every_intfinpfmatchpfnotinphelperImpliesis_constantis_sortedisntConstantisntSortedmatch_nrst_haversinemax_abs_diffmean_isnaminmaxModeCor3or3spmax0pmax3pmaxCpmaxVpmin0pmin3pminCpminVpoleInaccessibility2poleInaccessibility3range_rcppsquishsum_and3ssum_isnasum_or3sthinnerunique_fmatchuniqueN_fmatchwhich_are_evenwhich_firstwhich_firstNAwhich_lastwhich_lastNAwhich_true_onwardswhich3whichsxor2

Dependencies:data.tablefastmatchhutilsmagrittr

Readme and manuals

Help Manual

Help pageTopics
Absolute differenceabs_diff max_abs_diff
Is a vector empty?allNA
Are any values outside the interval specified?anyOutside
Are elements of a vector even?are_even which_are_even
Coerce from double to integer if safeas_integer_if_safe
Evaluate time of computationbench_system_time
Character to numericcharacter2integer
Convenience function for coalescing to zeroCOALESCE0 coalesce0
Faster version of 'scales::comma'Comma
Count logicalscount_logical
Cumulative sum unless resetcumsum_reset
What is the diameter of set of points?diam thinner
Divisibilitydivisible divisible16 divisible2
Every integerevery_int
Parallel fastmatchingfinp fmatchp fnotinp
Helperhelper
ImpliesImplies
Is a vector constant?isntConstant is_constant
Is a vector sorted?isntSorted is_sorted
Vectorized logical with support for short-circuitsand3 logical3 or3
Complex logical expressionsand3s logical3s or3s
Match coordinates to nearest coordinatesmatch_nrst_haversine
Proportion of missing valuesmean_isna
Minimum and maximumminmax
Most common elementModeC
Parallel maximum/minimumpmax0 pmax3 pmaxC pmaxV pmin0 pmin3 pminC pminV
Find a binary pole of inaccessibilitypoleInaccessibility poleInaccessibility2 poleInaccessibility3
Range C++range_rcpp
Squish into a rangesquish
Sum of logical expressionssum_and3s sum_or3s
Number of missing valuessum_isna
Distinct elementsuniqueN_fmatch unique_fmatch
Where does a logical expression first return 'TRUE'?which_first which_last
First/last position of missing valueswhich_firstNA which_lastNA
At which point are all values true onwardswhich_true_onwards
which of three vectors are the elements (all, any) true?which3
Separated whichwhichs
Exclusive orxor2