tests/testthat/test_g.impute.R

library(GGIR)
context("g.impute")
test_that("g.impute returns a non-empty dataframe", {
  data(data.getmeta)
  data(data.inspectfile)
  data(data.calibrate)
  IMP = g.impute(M = data.getmeta, I = data.inspectfile)
  expect_equal(length(IMP),12)  # 12 because now it also stores r5long to ease ignoring the expanded time (if not expanded, then it is not used)
})

Try the GGIR package in your browser

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

GGIR documentation built on Oct. 17, 2023, 1:12 a.m.