tests/testthat/test-getMatrix.R

library(propr)
data(caneToad.counts)
data(caneToad.groups)

df <- caneToad.counts[,1:500]
grp <- caneToad.groups
A <- propr(df, "phs")

test_that("getMatrix agrees with original matrix", {

  expect_equal(
    A@matrix,
    getMatrix(A)
  )
})

Try the propr package in your browser

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

propr documentation built on Dec. 16, 2019, 9:30 a.m.