tests/testthat/test-unscale.R

context("unscale")

test_that("unscale works", {
    
    X <- matrix(1:9, ncol = 3)
    X.scale <- scale(X, center = TRUE, scale = TRUE)
    X.unscale <- unscale(X.scale)
    
    expect_is(X.unscale, "matrix")
    expect_equal(X, X.unscale)
})

Try the timeOmics package in your browser

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

timeOmics documentation built on Nov. 8, 2020, 10:58 p.m.