Skip to contents

Option<T>: the value may be absent, NULL for a field and NA for an element of a vector or a cell of a table. A struct field of this type may declare who fills an absent value, with field()'s compute or context.

Usage

option(type)

Arguments

type

An r8_field_type or an R8 type: The type when present.

Value

An r8_field_type.

Examples

option(type_integer(min = 1L))
#> <r8 field type> optional integer [1, Inf)