key_and_value.Rd
Functions to check if an object is a valid key or value in a keyvalue pair, or coerce it if possible.
as.key(x) is.key(x) as.value(x) is.value(x)
x | a vector |
---|
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).