Learn R Programming

⚠️There's a newer version (0.10.10) of this package.Take me there.

hutilscpp

Under development

Highlights

This package is designed to accompany data in the order of 100M rows. For the sake of example, we will be using the gdata (1979-2013) file.

http://data.gdeltproject.org/events/index.html

Copy Link

Version

Install

install.packages('hutilscpp')

Monthly Downloads

950

Version

0.10.8

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hugh Parsonage

Last Published

March 6th, 2025

Functions in hutilscpp (0.10.8)

fmatchp

Parallel fastmatching
helper

Helper
as_integer_if_safe

Coerce from double to integer if safe
are_even

Are elements of a vector even?
divisible

Divisibility
logical3s

Complex logical expressions
minmax

Minimum and maximum
pmaxC

Parallel maximum/minimum
is_sorted

Is a vector sorted?
logical3

Vectorized logical with support for short-circuits
every_int

Every integer
squish

Squish into a range
sum_and3s

Sum of logical expressions
range_rcpp

Range C++
poleInaccessibility

Find a binary pole of inaccessibility
which_firstNA

First/last position of missing values
match_nrst_haversine

Match coordinates to nearest coordinates
which3

which of three vectors are the elements (all, any) true?
which_first

Where does a logical expression first return TRUE?
which_true_onwards

At which point are all values true onwards
sum_isna

Number of missing values
unique_fmatch

Distinct elements
whichs

Separated which
xor2

Exclusive or
character2integer

Character to numeric
abs_diff

Absolute difference
Comma

Faster version of scales::comma
anyOutside

Are any values outside the interval specified?
allNA

Is a vector empty?
bench_system_time

Evaluate time of computation
Implies

Implies
ModeC

Most common element
coalesce0

Convenience function for coalescing to zero
count_logical

Count logicals
is_constant

Is a vector constant?
hutilscpp-package

hutilscpp: Miscellaneous Functions in C++
cumsum_reset

Cumulative sum unless reset
diam

What is the diameter of set of points?