tests/testthat/test_massOrFlowTrans.R

# correctUnmix
context("massOrFlowTrans")
data(fullPanel)

testFrame <- flowFrame(matrix(c(rep(0, 50), 1),
                              nrow= 51, ncol = 1, dimnames  =
                                  list(rep(NA, 51), "V1")))
as.numeric(flowSpecs:::massOrFlowTrans(testFrame, transNames = "V1"))

test_that("massOrFlowTransResult", {
    expect_equal(5, as.numeric(
        flowSpecs:::massOrFlowTrans(testFrame, transNames = "V1")))
})

Try the flowSpecs package in your browser

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

flowSpecs documentation built on Nov. 8, 2020, 5:39 p.m.