← Back to all sparks
E

errors

ANALYTICS
Velocity0.0

Uncertainty Propagation for R Vectors

errors keeps making uncertainty print the way each scientific field expects.

uncertainty-propagationmeasurementr-quantitiesformattingggplot2
Current state
errors attaches uncertainty to numeric vectors and propagates it automatically through arithmetic, as part of the r-quantities family alongside units. The propagation core is settled; recent releases concentrate on presentation and integration — PDG rounding rules in 0.4.2, decimal support in parenthesis notation in 0.4.3, and ggplot2 deprecation tracking in 0.4.1 and 0.4.4.
Where it's heading
Two threads run through this history. One is formatting convergence: uncertainty has field-specific conventions, and the package has been absorbing them one contributed pull request at a time rather than imposing a single style. The other is keeping the errors class first-class everywhere R users work — vctrs methods for dplyr 1.0, a geom_errors() layer for ggplot2, missing-value and duplicate handling. Both are integration work, which is what a type-extension package mostly is.
Prediction
Expect further formatting conventions to arrive as contributions, following PDG rounding and the decimals option, plus continued upkeep against ggplot2 aesthetic deprecations that have forced two of the last four releases.

Recent moves

  1. 1y ago

    errors 0.4.4 replaces deprecated geom_errorbarh()

    geom_errors() switches to geom_errorbar() with flipped aesthetics after ggplot2 deprecated the horizontal variant, plus a cbind argument deparsing fix. Tracking upstream, with identical output.

    View source ↗
  2. 1y ago

    errors 0.4.3 supports decimals in parenthesis notation

    A contributed decimals option lets format() express uncertainties with decimal places inside parenthesis notation, closing a long-open request. The release also fixes the internal propagate function for a units issue, a reminder that this package and units move together.

    View source ↗
  3. 2y ago

    errors 0.4.2 adds PDG rounding rules

    Particle Data Group rounding conventions arrive via contribution, letting physics users report uncertainties the way their field requires without hand-formatting. Narrow by audience, but for that audience it decides whether package output is publishable as-is.

    View source ↗
  4. 2y ago

    errors 0.4.1 handles missing values, fixes na.rm

    Methods for missing values in errors objects and a corrected na.rm in summary methods — until now an NA in an uncertain vector had ill-defined behavior. Data frame performance also improves, and the ggplot2 size aesthetic gives way to linewidth.

    View source ↗
  5. 3y ago

    errors 0.4.0 adds geom_errors() for automatic errorbars

    A ggplot2 layer that draws errorbars straight from a variable's attached uncertainty, so the plot stops needing a separately computed ymin and ymax. The release also implements duplicated(), unique() and the integer division operators, filling in gaps where the errors class was not behaving like a real vector type.

    View source ↗
  6. 5y ago

    errors 0.3.6

    A single tolerance fix for the check applied when correlations approach 1. Numerical edge-case handling with no visible change in ordinary use.

    View source ↗