R/s4hm.R

s4hm <-
function(dir, model.name)
{
  if(length(bm <- search.bayesx.models(dir)))
    bm <- unique(grep(paste(model.name, "_hlevel", sep = ""), bm, fixed = TRUE, value = TRUE))
  else
    stop(paste("problems reading model results from directory:", dir))

  return(bm)
}
datacamp/R2BayesX documentation built on May 14, 2019, 7:10 p.m.