Divooka Reference

Table Values

12 nodes

On this page 12

Calculate

Function

A formula calculated on its own, from the values wired into X and Y: $x + $y, ROUND($x / $y, 2), UPPER($x).

Signature
Calculate(formula: Text, x: Any, y: Any) -> Any
object Calculate(string formula = "$x + $y", object x, object y)

Parameters

nametypedefaultdescription
formulaText$x + $yThe formula; $x and $y are X and Y.
xAny—The value of $x.
yAny—The value of $y.

Returns

ResultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Column Names

Function

A table's column names, in order.

Signature
ColumnNames(table: Table) -> Text Array
string[] ColumnNames(Table table)

Parameters

nametypedefaultdescription
tableTable—The table.

Returns

NamesText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Column Summary

Function

One column summarized as one value: its sum, mean, median, count and the rest.

Signature
ColumnSummary -> Any
    table: Table
    column: Text
    aggregation: Aggregation
object ColumnSummary(
    Table table,
    string column,
    Aggregation aggregation = Aggregation.Sum)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column.
aggregationAggregationSumHow its values become one.

Returns

ResultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Column To Text

Function

A column's values joined into one text: "North, South, East" - each value once, by default, in the order it first appears.

Signature
ColumnToText -> Text
    table: Table
    column: Text
    separator: Text
    distinct: Truth
string ColumnToText(
    Table table,
    string column,
    string separator = ", ",
    bool distinct = true)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column.
separatorText,What goes between the values.
distinctTruthTrueWhether each value appears once.

Returns

TextText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Get Cell

Function

The value in one cell: a column, and a row counted from 1 - or from the end when negative, so -1 is the last row.

Signature
GetCell(table: Table, column: Text, row: Integer) -> Any
object GetCell(Table table, string column, int row = 1)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The cell's column.
rowInteger1The cell's row: 1 for the first, -1 for the last.

Returns

ValueAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Get Dates

Function

A column of dates as a Date & Time Array; an empty cell is the earliest date there is.

Signature
GetDates(table: Table, column: Text) -> Date & Time Array
DateTime[] GetDates(Table table, string column)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column; text is read as dates.

Returns

DatesDate & Time Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Get Numbers

Function

A column of numbers as a Number Array, for nodes that take numbers - a chart, a vector. An empty cell is NaN, which a chart draws as a gap.

Signature
GetNumbers(table: Table, column: Text) -> Number Array
double[] GetNumbers(Table table, string column)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column; truths read as 1 and 0.

Returns

NumbersNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Get Texts

Function

A column as a Text Array, each value as it is written; an empty cell is empty text.

Signature
GetTexts(table: Table, column: Text) -> Text Array
string[] GetTexts(Table table, string column)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column; any kind.

Returns

TextsText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Get Truths

Function

A column of truths as a Truth Array; an empty cell is false.

Signature
GetTruths(table: Table, column: Text) -> Truth Array
bool[] GetTruths(Table table, string column)

Parameters

nametypedefaultdescription
tableTable—The table.
columnText—The column; text and numbers are read as truths.

Returns

TruthsTruth Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Table Info

Function

A table's size and column names.

Signature
TableInfo(table: Table) -> (Rows: Integer, columns: Integer, columnNames: Text)
int TableInfo(
    Table table,
    out int columns,
    out string columnNames)

Parameters

nametypedefaultdescription
tableTable—The table.

Returns

RowsInteger
columnsInteger
columnNamesText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Table To Markdown

Function

The table as a Markdown table, every row of it - for a report, a README or a chat message.

Signature
TableToMarkdown(table: Table) -> Text
string TableToMarkdown(Table table)

Parameters

nametypedefaultdescription
tableTable—The table.

Returns

MarkdownText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics

Table To Text

Function

The table as aligned text to print or show: its first Max Rows rows under their column names, numbers to the right.

Signature
TableToText(table: Table, maxRows: Integer) -> Text
string TableToText(Table table, int maxRows = 20)

Parameters

nametypedefaultdescription
tableTable—The table.
maxRowsInteger20How many rows to show; the rest are counted.

Returns

TextText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Values
Package
Data Analytics