Learn R Programming

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.10

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hugh Parsonage

Last Published

March 20th, 2025

Functions in hutilscpp (0.10.10)

fmatchp

Parallel fastmatching
count_logical

Count logicals
is_constant

Is a vector constant?
helper

Helper
cumsum_reset

Cumulative sum unless reset
squish

Squish into a range
match_nrst_haversine

Match coordinates to nearest coordinates
logical3s

Complex logical expressions
diam

What is the diameter of set of points?
whichs

Separated which
xor2

Exclusive or
sum_isna

Number of missing values
logical3

Vectorized logical with support for short-circuits
is_sorted

Is a vector sorted?
unique_fmatch

Distinct elements
pmaxC

Parallel maximum/minimum
minmax

Minimum and maximum
which_firstNA

First/last position of missing values
which_true_onwards

At which point are all values true onwards
range_rcpp

Range C++
poleInaccessibility

Find a binary pole of inaccessibility
which3

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

Sum of logical expressions
which_first

Where does a logical expression first return TRUE?
character2integer

Character to numeric
Comma

Faster version of scales::comma
ModeC

Most common element
Implies

Implies
bench_system_time

Evaluate time of computation
abs_diff

Absolute difference
anyOutside

Are any values outside the interval specified?
allNA

Is a vector empty?
as_integer_if_safe

Coerce from double to integer if safe
coalesce0

Convenience function for coalescing to zero
are_even

Are elements of a vector even?
every_int

Every integer
divisible

Divisibility
hutilscpp-package

hutilscpp: Miscellaneous Functions in C++