MCPcopy Create free account
hub / github.com/apache/arrow / vec_to_Array

Function vec_to_Array

r/src/r_to_arrow.cpp:1592–1605  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

1590
1591// [[arrow::export]]
1592SEXP vec_to_Array(SEXP x, SEXP s_type) {
1593 if (Rf_inherits(x, "Array")) return x;
1594
1595 bool type_inferred = Rf_isNull(s_type);
1596 std::shared_ptr<arrow::DataType> type;
1597
1598 if (type_inferred) {
1599 type = arrow::r::InferArrowType(x);
1600 } else {
1601 type = cpp11::as_cpp<std::shared_ptr<arrow::DataType>>(s_type);
1602 }
1603
1604 return cpp11::to_r6(arrow::r::vec_to_arrow_Array(x, type, type_inferred));
1605}
1606
1607// [[arrow::export]]
1608std::shared_ptr<arrow::Array> DictionaryArray__FromArrays(

Callers 1

_arrow_vec_to_ArrayFunction · 0.85

Calls 3

to_r6Function · 0.85
vec_to_arrow_ArrayFunction · 0.85
InferArrowTypeFunction · 0.70

Tested by

no test coverage detected