make_fields¶
Description¶
Extend an existing object with new fields.
If one of the keys passed to make_fields already exists in the object, that key’s old value will be overwritten by the value passed into make_fields.
Return type¶
object
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
make_fields(column, entries_1, entries_2, ...)
| Argument | Type | Optional | Repeatable | Restrictions | 
|---|---|---|---|---|
| column | object | no | no | none | 
| entries | expression | no | yes | none | 
Examples¶
make_col larger:make_fields(obj, key1:'value1', key2:'value2')
Create a column ‘larger’ based on column ‘obj’ with two key value pairs added (existing fields with the same name will be replaced).