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

Method Allocate

r/src/array_to_vector.cpp:668–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666 }
667
668 SEXP Allocate(R_xlen_t n) const {
669 cpp11::writable::integers data(n);
670 data.attr("levels") = GetLevels();
671 if (GetOrdered()) {
672 Rf_classgets(data, arrow::r::data::classes_ordered);
673 } else {
674 Rf_classgets(data, arrow::r::data::classes_factor);
675 }
676 return data;
677 }
678
679 virtual bool Parallel() const { return false; }
680

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected