Whereas chunked_array()
constructs a ChunkedArray from zero or more
Arrays or R vectors, as_chunked_array()
converts a single object to a
ChunkedArray.
as_chunked_array(x, ..., type = NULL)
# S3 method for ChunkedArray
as_chunked_array(x, ..., type = NULL)
# S3 method for Array
as_chunked_array(x, ..., type = NULL)
An object to convert to an Arrow Chunked Array
Passed to S3 methods
A type for the final Array. A value of NULL
will default to the type guessed by infer_type()
.
A ChunkedArray.
as_chunked_array(1:5)
#> ChunkedArray
#> [
#> [
#> 1,
#> 2,
#> 3,
#> 4,
#> 5
#> ]
#> ]