avro_from_df: avro_from_df

Description Usage Arguments Value Examples

Description

Convenience function for creating an Avro input schema from a data frame

Usage

1
avro_from_df(df, exclude = list(), name = NULL, namespace = NULL)

Arguments

df

a data.frame

exclude

set of field names to exclude

name

required name of the record (if not specified, gen_unique_rec_name() will be invoked)

namespace

optional namespace of the record

Value

a list of lists representing an Avro record type

Examples

1
avro_from_df(data.frame(x = c(1, 3, 5)))

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