Learn R Programming

arrow (version 0.15.1)

Schema: Schema class

Description

Create a Schema when you want to convert an R data.frame to Arrow but don't want to rely on the default mapping of R types to Arrow types, such as when you want to choose a specific numeric precision.

Usage

schema(...)

Arguments

...

named list of data types

Usage

s <- schema(...)

s$ToString() s$num_fields() s$field(i)

Methods

  • $ToString(): convert to a string

  • $num_fields(): returns the number of fields

  • $field(i): returns the field at index i (0-based)