narrow_array_data: Create Arrow arrays

View source: R/array-data.R

narrow_array_dataR Documentation

Create Arrow arrays

Description

Create Arrow arrays

Usage

narrow_array_data(
  buffers = NULL,
  length = 0,
  null_count = -1,
  offset = 0,
  children = NULL,
  dictionary = NULL
)

narrow_array_data_info(x, ...)

as_narrow_array_data(x, ...)

## S3 method for class 'narrow_array_data'
as_narrow_array_data(x, ...)

as_narrow_buffer(x, ...)

## Default S3 method:
as_narrow_buffer(x, ...)

Arguments

buffers

A list() of R vectors whose memory serves as an underlying buffer in the Arrow format.

length

The logical size of the array

null_count

The number of NULL values or -1 if this hasn't been computed yet.

offset

The number of elements to skip at the front of the array.

children

Child vectors as a list() coerced by as_narrow_array_data()

dictionary

Dictionary array for dictionary types.

x

An object to convert to an narrow_array

...

Passed to S3 Methods

Value

An object of class "narrow_array_data"

Examples

narrow_array_data(1:100, 100)


paleolimbot/arrowvctrs documentation built on Oct. 12, 2023, 7 a.m.