as_chunked_array: Convert an object to an Arrow ChunkedArray

View source: R/chunked-array.R

as_chunked_arrayR Documentation

Convert an object to an Arrow ChunkedArray

Description

Whereas chunked_array() constructs a ChunkedArray from zero or more Arrays or R vectors, as_chunked_array() converts a single object to a ChunkedArray.

Usage

as_chunked_array(x, ..., type = NULL)

## S3 method for class 'ChunkedArray'
as_chunked_array(x, ..., type = NULL)

## S3 method for class 'Array'
as_chunked_array(x, ..., type = NULL)

Arguments

x

An object to convert to an Arrow Chunked Array

...

Passed to S3 methods

type

A type for the final Array. A value of NULL will default to the type guessed by infer_type().

Value

A ChunkedArray.

Examples

as_chunked_array(1:5)


arrow documentation built on Nov. 25, 2023, 1:09 a.m.