Deterministic Categorization of Items Based on External Code Data
Overview
Fast categorization of items based on external code data identified by regular expressions. A typical use case considers patient with medically coded data, such as codes from the International Classification of Diseases ('ICD') or the Anatomic Therapeutic Chemical ('ATC') classification system. Functions of the package relies on a triad of objects: (1) case data with unit id:s and possible dates of interest; (2) external code data for corresponding units in (1) and with optional dates of interest and; (3) a classification scheme ('classcodes' object) with regular expressions to identify and categorize relevant codes from (2). It is easy to introduce new classification schemes ('classcodes' objects) or to use default schemes included in the package. Use cases includes patient categorization based on 'comorbidity indices' such as 'Charlson', 'Elixhauser', 'RxRisk V', or the 'comorbidity-polypharmacy' score (CPS), as well as adverse events after hip and knee replacement surgery.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 28 (5 internal)includes a package overview page
- Examples that run
- 93%13 run in a plain check · 1 never run
- Exported functions with examples
- 89%
- Documented parameters
- 87%
- Return-value docs
- 89%
- Help pages citing references
- 18%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 28
- 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
11 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/ropensci/coder on 2026-10-22.
GitHub Pages site last deployed 2020-12-16
pkgdown site last built 2025-05-05
Show all practicesHide 4 practices
Dependencies
Installing coder adds 13 packages (8 with compiled code, 11 MB of source tarballs). Heaviest: data.table 5.7 MB, decoder 1.3 MB, vctrs 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.13.10Latest
- 0.13.82022-08-29 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.13.52021-01-18
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-01-18
- Total releases
- 3 / 5 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.3
- Bundled data
- 78 KB / 10 files
- Download size
- 268 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("coder")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.