Crandore Hub

relatable

Functions for Mapping Key-Value Pairs, Many-to-Many, One-to-Many, and Many-to-One Relations

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.

Versions across snapshots

VersionRepositoryFileSize
1.0.0 rolling linux/jammy R-4.5 relatable_1.0.0.tar.gz 79.2 KiB
1.0.0 rolling linux/noble R-4.5 relatable_1.0.0.tar.gz 79.1 KiB
1.0.0 rolling source/ R- relatable_1.0.0.tar.gz 60.8 KiB
1.0.0 latest linux/jammy R-4.5 relatable_1.0.0.tar.gz 79.2 KiB
1.0.0 latest linux/noble R-4.5 relatable_1.0.0.tar.gz 79.1 KiB
1.0.0 latest source/ R- relatable_1.0.0.tar.gz 60.8 KiB
1.0.0 2026-04-26 source/ R- relatable_1.0.0.tar.gz 60.8 KiB
1.0.0 2026-04-23 source/ R- relatable_1.0.0.tar.gz 60.8 KiB
1.0.0 2026-04-09 windows/windows R-4.5 relatable_1.0.0.zip 85.5 KiB
1.0.0 2025-04-20 source/ R- relatable_1.0.0.tar.gz 60.8 KiB

Dependencies (latest)

Imports

Suggests