View source: R/extension-vctrs.R
| na_vctrs | R Documentation |
The Arrow format provides a rich type system that can handle most R
vector types; however, many R vector types do not roundtrip perfectly
through Arrow memory. The vctrs extension type uses vctrs::vec_data(),
vctrs::vec_restore(), and vctrs::vec_ptype() in calls to
as_nanoarrow_array() and convert_array() to ensure roundtrip fidelity.
na_vctrs(ptype, storage_type = NULL)
ptype |
A vctrs prototype as returned by |
storage_type |
For |
A nanoarrow_schema.
vctr <- as.POSIXlt("2000-01-02 03:45", tz = "UTC")
array <- as_nanoarrow_array(vctr, schema = na_vctrs(vctr))
infer_nanoarrow_ptype(array)
convert_array(array)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.