as_schema function

Convert an object to an Arrow Schema

Convert an object to an Arrow Schema

as_schema(x, ...) ## S3 method for class 'Schema' as_schema(x, ...) ## S3 method for class 'StructType' as_schema(x, ...)

Arguments

  • x: An object to convert to a schema()
  • ...: Passed to S3 methods.

Returns

A Schema object.

Examples

as_schema(schema(col1 = int32()))
  • Maintainer: Jonathan Keane
  • License: Apache License (>= 2.0)
  • Last published: 2025-02-26