Nothing
data("proximateCannabis", package = "proximetricsR")
X <- proximateCannabis$spc[5:15, seq(1, 200, by = 5)] # reduce to save memory
test_that("Standard normal variate returns correct values", {
expect_snapshot(process(X, prep_snv()))
})
test_that("Row means are 0 after SNV", {
X_rand <- matrix(rnorm(100), 10, 10)
X_snv <- process(X_rand, prep_snv())
expect_equal(apply(X_snv, 1, mean), rep(0, 10))
})
test_that("Row standard deviations are 1 after SNV", {
X_rand <- matrix(rnorm(100), 10, 10)
X_snv <- process(X_rand, prep_snv())
expect_equal(apply(X_snv, 1, sd), rep(1, 10))
})
test_that("SNV without a matrix is of class 'preprocessing", {
expect_true(inherits(prep_snv(), "preprocessing"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.