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

Function to_r_vector

r/src/arrow_cpp11.h:337–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336template <typename Rvector, typename T, typename ToVectorElement>
337Rvector to_r_vector(const std::vector<std::shared_ptr<T>>& x,
338 ToVectorElement&& to_element) {
339 R_xlen_t n = x.size();
340 Rvector out(n);
341 for (R_xlen_t i = 0; i < n; i++) {
342 out[i] = to_element(x[i]);
343 }
344 return out;
345}
346
347template <typename T, typename ToString>
348cpp11::writable::strings to_r_strings(const std::vector<std::shared_ptr<T>>& x,

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected