domjarkey/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.

Getting started

Package details

Maintainer
LicenseMIT + file LICENSE
Version1.0.0.9000
URL https://github.com/domjarkey/relatable
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("domjarkey/relatable")
domjarkey/relatable documentation built on May 23, 2019, 6:02 a.m.