Skip to contents

bedrock 0.1.24

CRAN release: 2026-11-25

New functions

  • New caseWhen() recodes vectors using ordered condition ~ value rules. The first match wins. A missing condition yields NA for elements still awaiting a match. Use na = "skip" to continue to the next rule.
  • groupApply() applies a function to a vector by groups and returns a plain data frame with one row per group: the grouping variables first, then one column per element of the result. A single value gives one column, a named vector one column per element (e.g. est, lci, uci), a one-row data frame its columns. Unlike tapply() there is no list matrix, and unlike aggregate() no matrix column. Methods for vectors (by =) and for formulas (y ~ g1 + g2).

Updates

  • resolveContingency() with square = TRUE now accepts paired ratings when at least two categories occur across the two raters, even if one rater always assigns the same category.

bedrock 0.1.20

CRAN release: 2026-10-16

  • toBaseR() gains a method for data.table: key, secondary indices and the internal self-reference are dropped, and a deep copy is returned. haven_labelled columns are converted to factors, as for tibbles.
  • toBaseR() on tibbles no longer breaks up list and matrix columns.

bedrock 0.1.17

  • courseData() has been renamed to readCourseData(), which describes the function better.

bedrock 0.1.15

bedrock 0.1.9

CRAN release: 2026-09-29

Initial CRAN release

  • First public release of bedrock, the base layer of the DescToolsX package suite: data manipulation and reshaping, predicates for data inspection, vector and string operations, labels and metadata, and routines from number theory and combinatorics.
  • Performance critical routines are implemented in C++ via Rcpp.
  • Documented in the vignette “Combinatorics”.

Acknowledgements

Parts of the code and documentation were reviewed with the help of large language models (OpenAI Codex, Anthropic Claude). Every suggestion was assessed, edited and verified by the maintainer, who remains solely responsible for the content of this package.