Skip to content

piar

Price Index Aggregation

v0.9.0 · May 5, 2026 · MIT + file LICENSE

Description

Most price indexes are made with a two-step procedure, where period-over-period elementary indexes are first calculated for a collection of elementary aggregates at each point in time, and then aggregated according to a price index aggregation structure. These indexes can then be chained together to form a time series that gives the evolution of prices with respect to a fixed base period. This package contains a collection of functions that revolve around this work flow, making it easy to build standard price indexes, and implement the methods described by Balk (2008, <doi:10.1017/CBO9780511720758>), von der Lippe (2007, <doi:10.3726/978-3-653-01120-3>), and the CPI manual (2020, <doi:10.5089/9781484354841.069>) for bilateral price indexes.

Downloads

CRAN

377

Last 30 days

11549th

1.5K

Last 90 days

6.3K

Last year

Trend: -9.4% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

34

Last 90 days

120

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

15

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

99

Last 30 days

399

Last 90 days

1.9K

Last year

Trend: -58.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

13,356

Files

161

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,134 (31%)Tests 5,342 (40%)Docs 2,537 (19%)Vignettes 1,343 (10.1%)

API

Exported functions

32

Internal functions

120

Recent export changes

v0.9.0+2 combine_classifications, impute_prices
v0.8.2+8 contrib<-, elementary_index, set_contrib +5 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.29

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

50%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2022-02-07

Latest release

2026-05-06

Avg cadence

185 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v0.3.2: 5,635 LOCv0.4.0: 5,932 LOCv0.5.0: 5,970 LOCv0.6.0: 8,595 LOCv0.7.0: 9,318 LOCv0.8.1: 9,726 LOCv0.8.2: 11,902 LOCv0.8.3: 12,839 LOCv0.9.0: 13,356 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies gpindex Matrix rsmatrix piar

Version History

10 tracked
updated 0.9.0 ← 0.8.3 diff May 6, 2026
new 0.8.3 Mar 10, 2026
updated 0.8.3 ← 0.8.2 diff Sep 16, 2025
updated 0.8.2 ← 0.8.1 diff Mar 18, 2025
updated 0.8.1 ← 0.7.0 diff Sep 11, 2024
updated 0.7.0 ← 0.6.0 diff Mar 7, 2024
updated 0.6.0 ← 0.5.0 diff Nov 18, 2023
updated 0.5.0 ← 0.4.0 diff Aug 9, 2023
updated 0.4.0 ← 0.3.2 diff Apr 29, 2022
new 0.3.2 Feb 6, 2022