tests/sum2_subset.R

library("matrixStats")

# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Subsetted tests
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
source("utils/validateIndicesFramework.R")
x <- runif(6, min = -6, max = 6)
storage.mode(x) <- "integer"
for (idxs in index_cases) {
  validateIndicesTestVector(x, idxs,
                            ftest = sum2, fsure = sum,
                            na.rm = FALSE)
  validateIndicesTestVector(x, idxs,
                            ftest = sum2, fsure = sum,
                            na.rm = TRUE)
}
HenrikBengtsson/matrixStats documentation built on April 12, 2024, 5:32 a.m.