avro_type: avro_type

Description Usage Arguments Value Examples

Description

Inspects an R object and produces the corresponding Avro type name

Usage

1
avro_type(obj)

Arguments

obj

object to inspect

Value

a list of lists Avro schema

Examples

1
2
3
4
avro_type("hello")           # "string"
avro_type(factor("hello"))   # "string"
avro_type(3.14)              # "double"
avro_type(3)                 # "int"

aurelius documentation built on May 2, 2019, 3:43 a.m.