as_data_type function

Convert an object to an Arrow DataType

Convert an object to an Arrow DataType

as_data_type(x, ...) ## S3 method for class 'DataType' as_data_type(x, ...) ## S3 method for class 'Field' as_data_type(x, ...) ## S3 method for class 'Schema' as_data_type(x, ...)

Arguments

  • x: An object to convert to an Arrow DataType
  • ...: Passed to S3 methods.

Returns

A DataType object.

Examples

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