avro_from_df {aurelius}R Documentation

avro_from_df

Description

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

Usage

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

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

[Package aurelius version 0.8.4 Index]