Skip to content

rephrase.Table (+rephrase)

Create a Table object for rephrase reports

Syntax

output = rephrase.Table(title, dates, varargin)

Input arguments

title [ string ]

Title text for the table.

dates [ numeric ]

Range of the data to be displayed which should match the format of the data.

Output arguments

output [ Table ]

Table type object with the assigned arguements to be passed into the rephrase objects.

Options

DateFormat='YYYY:MM' [ string ]

Date format to be displayed in the table.

NumDecimals=2 [ numeric ]

Number of decimals to be displayed in the table.

RowTitles= [ struct ]

Struct containing row titles to be displayed in the table.

ShowRows= [ struct struct('Baseline', true, 'Alternative', true, 'Diff', true) ]

Struct of options setting whether to show specific rows.

FirstCells= [ string ]

Description

ShowUnits=false [ true | false* ]

Description

UnitsHeading='Units' [ string Units ]

Description

Possible children

+rephrase/Series +rephrase/DiffSeries +rephrase/Heading

Description

The function +rephrase/Table returns the Table object based on the input arguments and options set by the user. The object itself needs to be passed to the parent rephrase object such as +rephrase/Grid.

Examples

table1 = rephrase.Table( ...
    "Table Name", range ...
    , "DateFormat", "YYYY:QQ" ...
    , "NumDecimals", 2 ...
    , "DisplayRows", struct("Diff", true, "Baseline", true, "Alternative", false) ...
    , "RowTitles", struct("Baseline","Title1","Alternative","Title2", "Diff", "Title3"));