1.0 KiB
1.0 KiB
title | description | menu | weight | flux/v0.x/tags | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sampledata.bool() function | `sampledata.bool` returns a sample data set with boolean values. |
|
101 |
|
sampledata.bool
returns a sample data set with boolean values.
import "sampledata"
sampledata.bool(includeNull: false)
Parameters
includeNull
Include null values in the returned dataset.
Default is false
.
Examples
Return sample data with boolean values
Function
import "sampledata"
sampledata.bool()
Output tables
{{% flux/sample "bool" %}}
Return boolean sample data with null values
Function
import "sampledata"
sampledata.bool(includeNull: true)
Output tables
{{% flux/sample "bool" true %}}