R/typeToPrototype.R

"typeToPrototype" <-
function (type, prototype, classes) 
{
    x <- match(type, classes[, 1])
    if (is.null(x) || all(is.na(x))) 
        x <- match(type, classes[, 2])
    if (!is.null(x) && !all(is.na(x))) 
        prototype <- paste(classes[, 2][x])
    return(prototype)
}

Try the dynamicGraph package in your browser

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

dynamicGraph documentation built on May 2, 2019, 6:38 a.m.