nanoarrow_extension_array: Create Arrow extension arrays

View source: R/extension.R

nanoarrow_extension_arrayR Documentation

Create Arrow extension arrays

Description

Create Arrow extension arrays

Usage

nanoarrow_extension_array(
  storage_array,
  extension_name,
  extension_metadata = NULL
)

Arguments

storage_array

A nanoarrow_array.

extension_name

For na_extension(), the extension name. This is typically namespaced separated by dots (e.g., arrow.r.vctrs).

extension_metadata

A string or raw vector defining extension metadata. Most Arrow extension types define extension metadata as a JSON object.

Value

A nanoarrow_array with attached extension schema.

Examples

nanoarrow_extension_array(1:10, "some_ext", '{"key": "value"}')


nanoarrow documentation built on June 22, 2024, 9:37 a.m.