tests/anyMissing_subset.R

library("matrixStats")

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Subsetted tests
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
source("utils/validateIndicesFramework.R")
x <- runif(4, min = -3, max = 3)
x[2] <- NA
for (mode in c("integer", "numeric")) {
  storage.mode(x) <- mode
  for (idxs in index_cases) {
    validateIndicesTestVector(x, idxs,
                              ftest = anyMissing, fsure = function(x, ...) {
        anyValue(x, value = NA)
    })
  }
}
HenrikBengtsson/matrixStats documentation built on April 12, 2024, 5:32 a.m.