tests/testthat/utils.R

gen_gamma <- function(n, shape, rates) {
  sapply(rates, function(rate) rgamma(n, shape, rate))
}
gen_pois <- function(n, m, how_many = 5) {
  replicate(how_many, rpois(n, m))
}

Try the mvabund package in your browser

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

mvabund documentation built on March 18, 2022, 7:25 p.m.