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

Function Table__columns

r/src/table.cpp:65–72  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

63
64// [[arrow::export]]
65cpp11::list Table__columns(const std::shared_ptr<arrow::Table>& table) {
66 auto nc = table->num_columns();
67 std::vector<std::shared_ptr<arrow::ChunkedArray>> res(nc);
68 for (int i = 0; i < nc; i++) {
69 res[i] = table->column(i);
70 }
71 return arrow::r::to_r_list(res);
72}
73
74// [[arrow::export]]
75std::vector<std::string> Table__ColumnNames(const std::shared_ptr<arrow::Table>& table) {

Callers 1

_arrow_Table__columnsFunction · 0.85

Calls 3

to_r_listFunction · 0.85
num_columnsMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected