Learn R Programming

aurelius (version 0.8.4)

avro_union: 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

Run this code
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

Run the code above in your browser using DataLab