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
Parameter | Type | Description |
---|---|---|
name | String | The name of the new column. |
data | double... | 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)
)
- result