avro_union {aurelius}R Documentation

avro_union

Description

Constructs a list of lists Avro schema for the tagged union type.

Usage

avro_union(...)

Arguments

...

schemas for each of the possible sub-types

Examples

avro_union(avro_null, avro_int)         # a way to make a nullable int
avro_union(avro_double, avro_string)    # any set of types can be unioned

[Package aurelius version 0.8.4 Index]