R/expand.vec.R

expand.vec <-
function (a, nplan) 
{
    if (length(a) == 1) {
        a <- rep(a, length = nplan)
    }
    if (length(a) != nplan) 
        stop(paste(deparse(substitute(a)), "has length", length(a), 
            "for", nplan, "plans"))
    return(a)
}

Try the teachingApps package in your browser

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

teachingApps documentation built on July 1, 2020, 5:58 p.m.