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

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hugh Parsonage

Last Published

January 8th, 2025

Functions in hutilscpp (0.10.7)

bench_system_time

Evaluate time of computation
Implies

Implies
allNA

Is a vector empty?
coalesce0

Convenience function for coalescing to zero
anyOutside

Are any values outside the interval specified?
ModeC

Most common element
cumsum_reset

Cumulative sum unless reset
count_logical

Count logicals
minmax

Minimum and maximum
as_integer_if_safe

Coerce from double to integer if safe
fmatchp

Parallel fastmatching
helper

Helper
pmaxC

Parallel maximum/minimum
character2integer

Character to numeric
hutilscpp-package

hutilscpp: Miscellaneous Functions in C++
abs_diff

Absolute difference
divisible

Divisibility
every_int

Every integer
is_sorted

Is a vector sorted?
squish

Squish into a range
is_constant

Is a vector constant?
diam

What is the diameter of set of points?
poleInaccessibility

Find a binary pole of inaccessibility
which3

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

Where does a logical expression first return TRUE?
logical3

Vectorized logical with support for short-circuits
range_rcpp

Range C++
sum_isna

Number of missing values
sum_and3s

Sum of logical expressions
which_firstNA

First/last position of missing values
which_true_onwards

At which point are all values true onwards
logical3s

Complex logical expressions
match_nrst_haversine

Match coordinates to nearest coordinates
unique_fmatch

Distinct elements
whichs

Separated which
xor2

Exclusive or
are_even

Are elements of a vector even?
Comma

Faster version of scales::comma