piar 0.5.0
Significant changes
-
piar
now requires R >= 4.0. -
is_chain_index()
has been removed; useis_chainable_index()
instead. -
The first argument to
elemental_index()
is nowx
, notrel
, to be consistent with the rest of the functions. Similarly, the first argument forexpand_classification()
is nowx
, notclass
.
New features
-
New functions
as_aggregation_structure()
andis_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 forexpand_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
NA
s or duplicate indices is no longer allowed.