nestedscales: Nested Scales and Multi-Dimensional Indexes for Modeling

Provides multi-level discrete representations of data dimensions for modeling, data processing and visualization. A nested scale records its finest units (atoms) and their membership in coarser levels (frames), including nested, cross-cutting and partially covered relationships. Recasts tabular data between levels using explicit, direction-aware rules for sums, means, standard deviations, copying and within-parent shares. Also supports labeling, subsetting, combining scales into multi-dimensional indexes, clustering units and storing data with its scale metadata. Members may carry attributes (a calorific value, an emission factor) and aliases, resolved along the hierarchy and applied row by row, and a scale is exchanged as a language-neutral definition file: a 'JSON' header with inline, 'Arrow' or 'CSV' tables ('YAML' accepted), with a catalogue of the definitions installed packages ship. Forms the dimension-agnostic core of 'timescales' <https://github.com/optimal2050/timescales> (calendars) and 'geoscales' <https://github.com/optimal2050/geoscales> (regions), designed for optimization and simulation models.

Version: 0.2.0
Depends: R (≥ 4.2)
Imports: dplyr, jsonlite, rlang, S7, stats, utils
Suggests: arrow, cluster, data.table, dtplyr, ggplot2, knitr, pkgdown, rmarkdown, testthat (≥ 3.0.0), tibble, withr, yaml
Published: 2026-11-03
DOI: 10.32614/CRAN.package.nestedscales (may not be active yet)
Author: Oleg Lugovoy ORCID iD [aut, cre]
Maintainer: Oleg Lugovoy <olugovoy at optimalsolution.dev>
BugReports: https://github.com/optimal2050/nestedscales/issues
License: Apache License (≥ 2)
URL: https://optimal2050.github.io/nestedscales/r/, https://github.com/optimal2050/nestedscales
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: nestedscales results

Documentation:

Reference manual: nestedscales.html , nestedscales.pdf
Vignettes: The NestedScale object (source, R code)
Attributes, aliases and conversion (source, R code)
Get started with nestedscales (source, R code)

Downloads:

Package source: nestedscales_0.2.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nestedscales to link to this page.

mirror server hosted at Truenetwork, Russian Federation.