[[arrow::export]]
| 63 | |
| 64 | // [[arrow::export]] |
| 65 | cpp11::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]] |
| 75 | std::vector<std::string> Table__ColumnNames(const std::shared_ptr<arrow::Table>& table) { |
no test coverage detected