tests/testthat/test_NonNegative.R

#
# Test Non-negative data
#

# Test NN-1: X
NegativeX <- X
NegativeX$X2[2, 3] <- -1
expect_error(GCTF(NegativeX, R_CP, Ranks=Ranks_CP, Beta=0))

Try the gcTensor package in your browser

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

gcTensor documentation built on July 9, 2023, 6:17 p.m.