Data Class and Tools for Handling Spatial-Temporal Data
Overview
Data class for increased interoperability working with spatial-temporal data together with corresponding functions and methods (conversions, basic calculations and basic data manipulation). The class distinguishes between spatial, temporal and other dimensions to facilitate the development and interoperability of tools build for it. Additional features are name-based addressing of data and internal consistency checks (e.g. checking for the right data order in calculations).
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: magclass/tests/testthat/test-addDim.R (.Dim: 4, .Dimnames: 4) magclass/tests/testthat/test-as.data.frame.R (.Label: 5) magclass/tests/testthat/test-as.magpie.R (.Dim: 4, .Dimnames: 4, .Names: 2) magclass/tests/testthat/test-complete_magpie.R (.Dim: 1, .Dimnames: 1) magclass/tests/testthat/test-convergence.R (.Dim: 1, .Dimnames: 1) magclass/tests/testthat/test-dimSums.R (.Dim: 5, .Dimnames: 5) magclass/tests/testthat/test-getCPR.R (.Dim: 3, .Dimnames: 3) magclass/tests/testthat/test-lowpass.R (.Dim: 1, .Dimnames: 1) magclass/tests/testthat/test-magpply.R (.Dim: 3, .Dimnames: 3) magclass/tests/testthat/test-mselect.R (.Dim: 1, .Dimnames: 1) magclass/tests/testthat/test-readwritemagpie.R (.Dim: 2, .Dimnames: 2) magclass/tests/testthat/test-various.R (.Dim: 4, .Dimnames: 3) magclass/tests/testthat/test-where.R (.Dim: 3, .Dimnames: 3) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. '.Label' should be changed to 'levels'. '.Names' should be changed to 'names'.
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘magpie-class.Rd’ \arguments should not be documented without \usage.
- NOTE8 OK, 5 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-23
- ERROR10 OK, 3 NOTE, 1 ERROR2026-03-30
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 91 (2 internal)includes a package overview page
- Examples that run
- 92%54 run in a plain check (2 of them under a condition) · 2 never run · 3 hold no code
- Exported functions with examples
- 76%
- Documented parameters
- 95%
- Return-value docs
- 85%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/pik-piam/magclass on 2026-10-22.
GitHub Pages site last deployed 2026-09-14 · The repository has a site deploy workflow
Show all practicesHide 5 practices
Dependencies
Installing magclass adds 3 packages (2 with compiled code, 6.5 MB of source tarballs). Heaviest: data.table 5.7 MB, rlang 766 KB, abind 21 KB.
Code & Tests
Datasets
People & History
Show 4 more contributorsHide 4 contributors
Pick two releases to compare their code metrics.
- 7.5.0Latest
- RR 4.6.0 released · 2026-04-24
- 7.4.32026-04-17 · diff ↗ ·
added 9 exports
addDim, commonYears, extend, guessResolution, matchDim, mplot, sameDims, suppressSpecificWarnings, unitjoin - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 6.13.22024-01-19 · diff ↗
- 6.13.1
- 6.10.0
- RR 4.3.0 released · 2023-04-21
- 6.8.32023-04-05 · diff ↗
- 6.8.2
- RR 4.2.0 released · 2022-04-22
- 6.0.92021-09-30 · diff ↗ ·
removed 16 exports
getMetadata<-, are_units_convertible, calibrate_it, convert.report, getMetadata, install_magpie_units, lin.convergence, magpieComp, magpieResolution, mbind2, old_dim_convention, place_x_in_y, remind2magpie, set_magpie_units, updateMetadata, withMetadataadded 1 export
ndim - RR 4.1.0 released · 2021-05-18
- 5.24.72021-02-25 · diff ↗ ·
removed 1 export
coordadded 10 exports
getCoords<-, getItems<-, as.RasterBrick, collapseDim, dimExists, getCoords, hasCoords, hasSets, maxample, setItems - 5.15.6
Show 15 earlier eventsHide 15 earlier events
- RR 4.0.0 released · 2020-04-24
- 5.7.32020-03-02 · diff ↗
- 5.7.0
- 5.5.12019-12-07 · diff ↗
- 5.5.0
- 4.107.02019-05-29 · diff ↗ ·
added 8 exports
getMetadata<-, are_units_convertible, getMetadata, install_magpie_units, magpply, set_magpie_units, updateMetadata, withMetadata - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 4.51.1
- 4.392017-05-26 · diff ↗ ·
removed 6 exports
head.magpie, is.quitte, make.ISOyear, print.magpie, setNames, tail.magpieadded 3 exports
dimOrder, where, write.report2 - RR 3.4.0 released · 2017-04-21
- 3.852016-07-21 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 3.742015-11-18
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-11-18
- Total releases
- 19 / 11 yrs
- License
- LGPL-3 | file LICENSE OSI
- Additional repositories
- pik-piam.r-universe.dev
- Minimum R
- ≥ 2.10.0
- Bundled data
- 1.3 KB / 1 file
- Download size
- 338 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("magclass")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.