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)
    })
  }
}

Try the matrixStats package in your browser

Any scripts or data that you put into this service are public.

matrixStats documentation built on Nov. 7, 2023, 5:07 p.m.