Documentation

sampledata.numericBool() function

Flux 0.128.0+

sampledata.numericBool returns a sample data set with numeric boolean values ([0,1]).

import "sampledata"

sampledata.numericBool(
  includeNull: false
)

Parameters

includeNull

Include null values in the returned dataset. Default is false.

Examples

Return sample data with numeric boolean values

Function
import "sampledata"

sampledata.numericBool()
Output tables
_timetag_value
2021-01-01T00:00:00Zt11
2021-01-01T00:00:10Zt11
2021-01-01T00:00:20Zt10
2021-01-01T00:00:30Zt11
2021-01-01T00:00:40Zt10
2021-01-01T00:00:50Zt10
_timetag_value
2021-01-01T00:00:00Zt20
2021-01-01T00:00:10Zt21
2021-01-01T00:00:20Zt20
2021-01-01T00:00:30Zt21
2021-01-01T00:00:40Zt21
2021-01-01T00:00:50Zt20

Return numeric boolean sample data with null values

Function
import "sampledata"

sampledata.numericBool(includeNull: true)
Output tables
_timetag_value
2021-01-01T00:00:00Zt11
2021-01-01T00:00:10Zt1
2021-01-01T00:00:20Zt10
2021-01-01T00:00:30Zt1
2021-01-01T00:00:40Zt1
2021-01-01T00:00:50Zt10
_timetag_value
2021-01-01T00:00:00Zt2
2021-01-01T00:00:10Zt21
2021-01-01T00:00:20Zt20
2021-01-01T00:00:30Zt21
2021-01-01T00:00:40Zt2
2021-01-01T00:00:50Zt20

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.