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

Method validate_index

r/src/array.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void arrow::r::validate_index(int64_t i, int64_t len) {
96 if (i == NA_INTEGER) {
97 cpp11::stop("'i' cannot be NA");
98 }
99 if (i < 0 || i >= len) {
100 cpp11::stop("subscript out of bounds");
101 }
102}
103
104// [[arrow::export]]
105bool Array__IsNull(const std::shared_ptr<arrow::Array>& x, R_xlen_t i) {

Callers

nothing calls this directly

Calls 1

stopFunction · 0.85

Tested by

no test coverage detected