R/effNames.R

effNames <-
function (effects = NULL, loci = NULL, nloc = 1) 
{
    n <- paste(rep(noia::effectsNames[1], nloc), collapse = "")
    if (!is.null(effects)) {
        for (i in 1:length(loci)) {
            substr(n, loci[i], loci[i] + 1) <- effects[i]
        }
    }
    return(n)
}

Try the noia package in your browser

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

noia documentation built on March 31, 2023, 6:45 p.m.