piar 0.7.0
Significant changes
-
Some arguments for
elemental_index()
,as_index()
,aggregate(index)
,mean(index)
,vcov(index)
,update(aggregation_structure)
, andweights(aggregation_structure)
now need to be named (e.g.,na.rm
,contrib
). This helps to unify the signatures for several functions that had similar arguments in different positions. In all cases these are arguments that are not near the beginning of the function and should have probably been named anyways. -
There are several bug fixes in this version that make non-backwards compatible changes.
Improvements
-
Added examples for finding imputed index values to the vignette.
-
contrib()
gets a new argumentperiod
to control which time periods get included in the contributions matrix (as documented). -
contrib()
gets a new argumentpad
to control how the contributions matrix is padded when products differ over time. -
Added
is.na()
andanyNA()
methods to find missing values in an index object. -
index[i] <- value
now works wheni
is a matrix. -
mean()
gets a new argumentcontrib
to control if product contributions are aggregated over subperiods. -
Added a
split()
method for index objects. -
levels(aggregation_structure)
now returns a list of levels to denote the position of each level in the hierarchy. Useunlist()
to get the old behavior.
Bug fixes
-
The default for
ea_only
has changed toTRUE
when callingweights(aggregation_structure)
to fix a bug with the replacement method. -
Replacing an index value with
index[] <- value
whenvalue
is also an index object now works correctly whenvalue
is recycled. -
Setting
stringsAsFactors = TRUE
inas.data.frame(index)
now keeps the correct ordering of the factor levels. -
mean(index)
no longer returns an aggregate index whenr
differs from that used to makeindex
.
Deprecations
- The
cols
argument foras_index()
is deprecated and will be removed in a future version.