Module arrow_extendr::from
source · Expand description
Convert arrow-rs objects to an Robj
ⓘ
fn array_from_r(field: Robj) -> Result<ArrayData> {
ArrayData::from_arrow_robj(&field)?
}
Robj
s from {nanoarrow}
and {arrow}
are both supported.
arrow-rs struct | R object |
---|---|
Field | nanoarrow_schema or arrow::Field |
Schema | nanoarrow_schema or arrow::Schema |
DataType | nanoarrow_schema or arrow::DataType |
ArrayData | nanoarrow_array or arrow::Array |
RecordBatch | nanoarrow_array_stream or arrow::RecordBatch |
ArrowArrayStreamReader | nanoarrow_array_stream |
Notes
In the case of creating a RecordBatch
from a nanoarrow_array_stream
only
the first chunk is returned. If you expect more than one chunk, use ArrowArrayStreamReader
.
Traits
- Creates arrow-rs Structs from an Robj
Functions
- Calls
nanoarrow::nanoarrow_pointer_addr_chr()
- Calls
nanoarrow::nanoarrow_pointer_export()