Returns a copy of the variable with metadata field set to value. The
package registry entry for the name is updated as well.
Usage
setmetadata(x, field, value)
getmetadata(x, field, default = NULL)
Arguments
- x
A variable.
- field
Metadata field name, such as "default", "guess" or
"description".
- value
The value.
- default
Value returned when the field is not set.
Value
The variable with updated metadata.