powered by
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.
Schema
data.frame
schema(...)
named list of data types
s <- schema(...)s$ToString() s$num_fields() s$field(i)
s$ToString() s$num_fields() s$field(i)
$ToString(): convert to a string
$ToString()
$num_fields(): returns the number of fields
$num_fields()
$field(i): returns the field at index i (0-based)
$field(i)
i