Augment frames
The AUG() function allows you to modify or augment a frame.
Use the following parameters in the AUG() function:
- The address of the cell that contains an existing frame.
- A JSONPath expression referring to the column whose values you want to modify in the new frame.
- The value to be used in the column.
The following video and the procedure under the video show how to use the AUG() function:
Create an invoice in the spreadsheet, like the one in the figure below:
In cell B9, enter a formula with the FRAME() function referencing the range:
=FRAME(B3:F6)
Now, let's create a new frame, where all the column qty values are replaced with "n/a":
The resulting frame is shown in the figure below.
If a column specified in the AUG() function is not found in the existing frame, the column is added to the new frame along with the specified column value.
Let's create a frame that contains an additional column discounted_amount:
The resulting frame is shown in the figure below.