Variable to calculate with record numbers in a table.
Syntax
%R
Notes:
Column[expr] |
to use values of a column indexed by record values, class names or IDs |
Table.Column[expr] |
to use values of a column in another table, indexed by record values, class names or IDs |
Table.Ext.Column[expr] |
to use values of a column in a table with another extension than .tbt (e.g. .his), indexed by record values, class names or IDs. |
Tip:
When the definition symbol = is used, a dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output column has been calculated.
Usable in
Examples
TabCalc example:
OutCol1 = %R
OutCol2 = OutCol1[%R+1] - OutCol1[%R]
OutCol3 = (OutCol1[%R-1] + OutCol1 + OutCol1[%R+1]) / 3
Domain |
MyValue |
OutCol1 |
OutCol2 |
OutCol3 |
Glacial deposits |
10 |
1 |
10 |
? |
Lake deposits |
20 |
2 |
10 |
20 |
Old alluvial deposits |
30 |
3 |
40 |
40 |
Quartzites |
70 |
4 |
10 |
60 |
Recent alluvial deposits |
80 |
5 |
40 |
80 |
Shales |
90 |
6 |
10 |
100 |
Siltstones |
130 |
7 |
10 |
120 |
Slope deposits |
140 |
8 |
? |
? |
See also: