Skip to content

cat2cat

0.6.1

Handling an Inconsistently Coded Categorical Variable in a Longitudinal Dataset

0packages depend
3.5Kdownloads / year
99.7%test coverage
13/13checks pass

Overview

About
Maintained by Maciej NasinskiFirst published 2020-09-2213 releasesCRAN page ↗GitHub ↗

Unifying an inconsistently coded categorical variable between two different time points in accordance with a mapping table. The main rule is to replicate the observation if it could be assigned to a few categories. Then using frequencies or statistical methods to approximate the probabilities of being assigned to each of them. This procedure was invented and implemented in the paper by 'Nasinski', 'Majchrowska', and 'Broniatowska' (2020) doi:10.24425/cejeme.2020.134747.

Install

Health

CRAN checks
13OK
Slowest check: 12.9 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 1.03
99.7%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-05-03
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
67%
Documented parameters
80%
Return-value docs
100%
References docs
0%

Downloads

3.5K
CRAN downloads in the past year
Rank #7,059 · ~10/day · ~294/mo
Daily download trend is not available in this view yet.
21930 days
1.2K90 days
3.5K1 year
Compare downloads with other packages →
Also on225 r2u27 autocran

Repository

Repository
5Stars
1Forks
7Open issues
0Open PRs
4Releases
120Commits
1Contributors
factorcategoriespanelencodingencodingstransitionsmappingsmapping
License GPL-2.0 · 120 commits · Last activity 2026-05-19 · 0% stars, 30d

Stars over time

2025-07-18 · 52026-07-07 · 5

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/polkas/cat2cat on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6
Imports (1)
MASS
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

13 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.6.1Latest
    2026-05-18 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.7
    2024-01-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.6
    2023-02-01 · diff ↗
  • 0.4.5
    2022-09-25 · diff ↗
  • 0.4.4
    2022-08-31 · diff ↗
  • 0.4.2
    2022-08-05 · diff ↗
  • 0.4.1
    2022-06-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.3
    2022-03-11 · diff ↗
  • 0.3.1
    2022-02-06 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.1
    2021-03-27 · diff ↗
Show 4 earlier events
  • 0.2.0
    2020-12-08 · diff ↗
  • 0.1.7
    2020-11-29 · diff ↗
  • 0.1.3
    2020-09-22
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-09-22
Total releases
13 / 6 yrs
License
GPL (>= 2) | file LICENSE OSI
Minimum R
≥ 3.6
Bundled data
2.2 MB / 6 files
Download size
2.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cat2cat")
Nasinski, M. (2026). cat2cat: Handling an Inconsistently Coded Categorical Variable in a Longitudinal Dataset (Version 0.6.1) [Computer software]. https://doi.org/10.32614/CRAN.package.cat2cat

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cat2cat version 0.6.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy