NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The number data macro establishes the numerator:. Enter a new value in the Edit Contents view.

Number Data
nameNumerator
decimaltrue
1


The number data macro establishes the denominator:. Enter a new value in the Edit Contents view.

Number Data
nameDenominator
decimaltrue
2

...

Evaluating Data in Tables

In the Edit Contents view the text data and number data macros display a plus sign with the table. Selecting the plus sign opens the table to accept names of variables and values for them. The evaluate data macros calculate the sum and the average.

An example follows.

Code Block
{table-data:Values}
|| Name || Value ||
| {text-data:Name}{text-data} | {number-data:Value}{number-data} |
{table-data}

Sum: {eval-data:Sum}sumtable("Values", "Value"){eval-data}
Average: {eval-data:Average}avgtable("Values", "Value"){eval-data}

The table data macro contains a table with text data for the name and number data for the value. In the Edit Contents view select the plus sign to add a row and enter values for each row.

Table Data
nameValues
orderasc

Name

Value

wikiNameINLINE ValueINLINE

...