R/getClassEnvir.R

Defines functions getClassEnvir

Documented in getClassEnvir

getClassEnvir <-
function(classGet = "list", envir = KTSEnv) {
    objectsInGE <- ls(envir = KTSEnv)
    classInGE <- apply(as.matrix(objectsInGE), 1, function(i) {
        if (any(class(get(i, envir = envir)) == classGet)) {
            i
        } else {
            NA
        }
    })
    classInGE <- classInGE[which(is.na(classInGE) == FALSE)]
}

Try the KarsTS package in your browser

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

KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.