R/selrand.R

Defines functions selrand

Documented in selrand

# Random selection
selrand = function(fitvals, ns, ...){
  n=length(fitvals)
  if(missing(ns)) ns=n
  matpool = sample(1:n, size=ns, replace=TRUE)
  return(matpool)
}

Try the adana package in your browser

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

adana documentation built on March 18, 2022, 6:03 p.m.