View source: R/convert-array-stream.R
convert_array_stream | R Documentation |
Converts array_stream
to the type specified by to
. This is a low-level
interface; most users should use as.data.frame()
or as.vector()
unless
finer-grained control is needed over the conversion. See convert_array()
for details of the conversion process; see infer_nanoarrow_ptype()
for
default inferences of to
.
convert_array_stream(array_stream, to = NULL, size = NULL, n = Inf)
collect_array_stream(array_stream, n = Inf, schema = NULL, validate = TRUE)
array_stream |
A nanoarrow_array_stream. |
to |
A target prototype object describing the type to which |
size |
The exact size of the output, if known. If specified, slightly more efficient implementation may be used to collect the output. |
n |
The maximum number of batches to pull from the array stream. |
schema |
A nanoarrow_schema or |
validate |
Use |
convert_array_stream()
: An R vector of type to
.
collect_array_stream()
: A list()
of nanoarrow_array
stream <- as_nanoarrow_array_stream(data.frame(x = 1:5))
str(convert_array_stream(stream))
str(convert_array_stream(stream, to = data.frame(x = double())))
stream <- as_nanoarrow_array_stream(data.frame(x = 1:5))
collect_array_stream(stream)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.