key_and_value: Coerce to key or value in objects in a key-value pair

Description Usage Arguments Value

Description

Functions to check if an object is a valid key or value in a keyvalue pair, or coerce it if possible.

Usage

1
2
3
4
5
6
7

Arguments

x

a vector

Value

as.value returns a value-object (currently the vector itself but with class "value"). as.key returns a key-object (building on value but with unique entries and as character).


decoder documentation built on April 22, 2020, 5:07 p.m.