tests/testthat/test_calpclinear.R

context("Linear PCA for SNPs")

test_that("calculate linear PCA",{

  data(example_SNP)

  PCs <- cal.pc.linear(simsnp$snp, no.pc = 3)

  expect_length(PCs, 2)
  expect_length(PCs$evalue, 3)
  expect_length(PCs$PC, 309)
})

Try the KRIS package in your browser

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

KRIS documentation built on Jan. 21, 2021, 5:08 p.m.