as_arrow_array | R Documentation |
The as_arrow_array()
function is identical to Array$create()
except
that it is an S3 generic, which allows methods to be defined in other
packages to convert objects to Array. Array$create()
is slightly faster
because it tries to convert in C++ before falling back on
as_arrow_array()
.
as_arrow_array(x, ..., type = NULL)
## S3 method for class 'Array'
as_arrow_array(x, ..., type = NULL)
## S3 method for class 'Scalar'
as_arrow_array(x, ..., type = NULL)
## S3 method for class 'ChunkedArray'
as_arrow_array(x, ..., type = NULL)
x |
An object to convert to an Arrow Array |
... |
Passed to S3 methods |
type |
A type for the final Array. A value of |
An Array with type type
.
as_arrow_array(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.