Skip to main content
Version: Java (Groovy)

doubleCol

The doubleCol method creates a column containing Java primitive double values.

note

This method is commonly used with newTable to create tables.

Syntax

doubleCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

datadouble...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of doubles named Doubles.

result = newTable(
doubleCol("Doubles", 0.1, 0.2, 0.3)
)