R/expectedPromptIndexSingleVersion.R

# expectedPromptIndexSingleVersion
#
#
expectedPromptIndexSingleVersion <- function(esVersion, expectedPromptIndex, expectedCategory) {

    PROMPTFALSE <- rep(0, times = nrow(esVersion))
    PROMPTFALSE[esVersion[,"PROMPT"]%in%expectedPromptIndex == FALSE] <- 1

    esVersion[,"PROMPTFALSE"] <- PROMPTFALSE
    esVersion[,"EXPCATEGORY"] <- expectedCategory

    return(esVersion)
}

Try the esmprep package in your browser

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

esmprep documentation built on July 5, 2019, 5:03 p.m.