Skip to contents

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 narrow_array_data
as_narrow_array_data(x, ...)

as_narrow_buffer(x, ...)

# S3 method for default
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)
#> <narrow_array_data at 0x55e690163470>
#> - length: 100
#> - null_count: -1
#> - offset: 0
#> - buffers[1]: List of 1
#>   $ : int [1:100] 1 2 3 4 5 6 7 8 9 10 ...
#> - dictionary: NULL
#> - children[0]: