Skip to content

piar 0.5.0

Compare
Choose a tag to compare
@marberts marberts released this 11 Nov 05:03
· 96 commits to main since this release

Significant changes

  • piar now requires R >= 4.0.

  • is_chain_index() has been removed; use is_chainable_index() instead.

  • The first argument to elemental_index() is now x, not rel, to be consistent with the rest of the functions. Similarly, the first argument for expand_classification() is now x, not class.

New features

  • New functions as_aggregation_structure() and is_aggregation_structure() to coerce (usually) tabular data for aggregation weights into an aggregation structure, and test if an object is an aggregation structure.

  • A method for [[ for index objects to extract or replace a single index value.

  • The weights for an aggregation structure can be replace with weights(pias) <- vector.

Improvements

  • The levels() replacement function now gives an error for indexes and aggregation structures, rather than adding a levels attribute that does nothing.

  • The width argument for expand_classification() now recycles a single value.

  • Major overhaul of the documentation should make it easier to use.

  • The object structure used to represent index object has been refined.

  • Subscripting an index object is now much faster.

  • It is now possible to update an aggregation structure with a non-aggregated index.

  • Functions that accept a price index or an aggregation structure as an argument now attempt to coerce these arguments into an index object or aggregation structure object instead of throwing an error.

Bug fixes

  • Fixed a bug where creating elemental indexes with missing product names could produce a contributions matrix with the wrong number of products.

  • It is now possible to chain an index with only one level.

  • Subscripting an index with NAs or duplicate indices is no longer allowed.