← Back to all sparks
Q

quantities

ANALYTICS
Velocity0.0

Quantity Calculus for R Vectors

The glue package that makes R carry units and uncertainty through the same calculation.

unitsmeasurement-uncertaintyerror-propagationr-packagetidyverse-compat
Current state
quantities combines the units and errors packages into one class so values keep both their measurement units and their uncertainty through arithmetic, subsetting and data frame operations. Recent releases have been narrow: fixes to the covariance and correlation implementations, and performance work on the data.frame methods. Most of the release traffic is coordination with its two parent packages.
Where it's heading
The design settled with 0.2.0, which made uncertainty unit-aware and added correlation and covariance support for quantities objects. Since then the package behaves like the integration layer it is — releasing when units, errors, dplyr or ggplot2 shift underneath it rather than on its own schedule. Several releases consist only of test repairs against upstream changes.
Prediction
Expect the next release to follow a units or errors change rather than introduce new behaviour of its own.

Recent moves

  1. 1y ago

    Fixes covariance and correlation implementations

    Fixes the covar and correl implementations added in 0.2.0. A correctness patch on the newest part of the package's surface.

    View source ↗
  2. 2y ago

    Faster data.frame methods

    Performance improvements to the data.frame methods, plus ggplot2 test updates. Data frame operations are where the double wrapping of units and errors costs the most, so this is the right place to spend effort.

    View source ↗
  3. 3y ago

    Test fixes for an upstream units change

    Fixes a couple of tests against an upstream units change. Typical of this package's release pattern, where much of the traffic is staying valid against its dependencies.

    View source ↗
  4. 3y ago

    Uncertainty becomes unit-aware; adds correlation support

    Makes uncertainty unit-aware — errors() now returns a units object matching x, and uncertainty supplied in compatible units is converted automatically — and adds correlation and covariance support plus duplicated, anyDuplicated and unique methods. The release that completed the package's core promise.

    View source ↗
  5. 5y ago

    Compatibility fix for units 0.7-0

    A compatibility fix for units 0.7-0. No user-facing change beyond continuing to work.

    View source ↗
  6. 6y ago

    Fixes uncertainty propagation for offset unit conversions

    Restores dplyr 1.0.0 compatibility in coordination with units and errors, and fixes uncertainty propagation through conversions that combine scaling and offset, such as Celsius to Fahrenheit. The second fix is a genuine correctness bug in the package's core arithmetic.

    View source ↗