relatable
1.0.0Functions for Mapping Key-Value Pairs, Many-to-Many, One-to-Many, and Many-to-One Relations
Overview
Functions to safely map from a vector of keys to a vector of values, determine properties of a given relation, or ensure a relation conforms to a given type, such as many-to-many, one-to-many, injective, surjective, or bijective. Permits default return values for use similar to a vectorised switch statement, as well as safely handling large vectors, NAs, and duplicate mappings.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- References docs
- 0%
Downloads
Repository
Stars over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/domjarkey/relatable on 2026-08-16.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2018-01-30
- Total releases
- 1 / 8 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4
- Bundled data
- 1.2 KB / 1 file
- Download size
- 60 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("relatable")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.
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.