Skip to contents

zmisc 0.3.0

New features

Breaking changes

  • In lookup() and lookuper(), the default argument is renamed to .default and follows ..., so it must be named. Calls that pass default by name or by position now raise an error.

  • lookup() no longer accepts factors, either as x or as columns of the lookup table. Previously, a factor x had its levels looked up. Use levels(x) <- lookup(levels(x), lookup_table) for that behavior.

  • zingle() no longer has an na.rm argument. Missing values are handled by na.ok.partial, na.ok.all and empty.ok instead. The closest equivalent of na.rm = TRUE is na.ok.partial = TRUE, na.ok.all = TRUE, empty.ok = TRUE, except that NaN now counts as a value rather than as missing. An empty vector is now an error unless empty.ok = TRUE; previously it returned NA.

  • ll_assert_labelled() is renamed to ll_chk_labelled(), following the chk_ naming used for the new check functions. The old name is removed.

Bug fixes and behavior changes

  • Various fixes and improvements to zeq(), zample() and zingle().

  • wrap_error() now honors its wrap argument correctly.

zmisc 0.2.3

CRAN release: 2023-08-22

  • Adds the notate() function.

  • Adds a default parameter to the lookup() and lookuper() functions.

zmisc 0.2.2

CRAN release: 2022-04-29

  • This version fixes an incompatibility with roxygen 7.1.3.

zmisc 0.2.1

CRAN release: 2022-02-02

  • This version includes documentation improvements as well as a few other fixes.

zmisc 0.2.0

  • This version adds two functions, lookup() and lookuper(), designed to look up values from a lookup table in a way that works smoothly in an R workflow, in particular within pipes.

zmisc 0.1.0

  • This is the initial version of zmisc, which includes three functions, zample(), zeq(), and zingle(), for safer sampling, sequencing and subsetting in a data processing workflow