Skip to contents

Safer sampling, sequencing and aggregation

Replacements for base functions that do not change their behaviour at awkward boundary conditions.

zample()
Sample from a vector in a safe way
zeq()
Generate sequence in a safe way
zingle()
Return the single (unique) value found in a vector

Checks

The chk_*() family: checkmate type checks that raise rlang style errors and return their input.

Glue interpolation

glue_vector()
Glue interpolation vectors in pipes

Value look-ups

lookup() lookuper()
Lookup values from a lookup table

Viewing variables

notate()
Embed factor levels and value labels in values.

Other utilities

asciify()
Convert non-ASCII characters to their ASCII equivalents
yencode() yencoder() ydecode() ydecoder()
Yet (another urlencode compatible) encoding scheme