Download this file
1 2 3 4 5 6 7 8 9 10 11
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) })