powered by
Convenience function for creating an Avro input schema from a data frame
avro_from_df(df, exclude = list(), name = NULL, namespace = NULL)
a data.frame
data.frame
set of field names to exclude
required name of the record (if not specified, gen_unique_rec_name() will be invoked)
optional namespace of the record
a list of lists representing an Avro record type
list
avro_from_df(data.frame(x = c(1, 3, 5)))
Run the code above in your browser using DataLab