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

525

Version

0.10.4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hugh Parsonage

Last Published

December 4th, 2023

Functions in hutilscpp (0.10.4)

divisible

Divisibility
every_int

Every integer
is_sorted

Is a vector sorted?
logical3s

Complex logical expressions
minmax

Minimum and maximum
whichs

Separated which
range_rcpp

Range C++
poleInaccessibility

Find a binary pole of inaccessibility
pmaxC

Parallel maximum/minimum
xor2

Exclusive or
logical3

Vectorized logical with support for short-circuits
which_firstNA

First/last position of missing values
which_true_onwards

At which point are all values true onwards
which3

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

Where does a logical expression first return TRUE?
match_nrst_haversine

Match coordinates to nearest coordinates
hutilscpp-package

hutilscpp: Miscellaneous Functions in C++
is_constant

Is a vector constant?
sum_and3s

Sum of logical expressions
squish

Squish into a range
sum_isna

Number of missing values
unique_fmatch

Distinct elements
ModeC

Most common element
are_even

Are elements of a vector even?
Comma

Faster version of scales::comma
abs_diff

Absolute difference
allNA

Is a vector empty?
anyOutside

Are any values outside the interval specified?
Implies

Implies
character2integer

Character to numeric
bench_system_time

Evaluate time of computation
cumsum_reset

Cumulative sum unless reset
as_integer_if_safe

Coerce from double to integer if safe
diam

What is the diameter of set of points?
helper

Helper
coalesce0

Convenience function for coalescing to zero
fmatchp

Parallel fastmatching
count_logical

Count logicals