R/setPairwiseClassFlag.R

Defines functions setPairwiseClassFlag

setPairwiseClassFlag <- function(x, cutoff) {
    ws <- 0
    ws <- ifelse(x[,3] == 1 & x[,4] == 0 & (x[,1]-x[,2] >= cutoff),1,ws)
    ws <- ifelse(x[,3] == 0 & x[,4] == 1 & (x[,2]-x[,1] >= cutoff),2,ws)
    ws <- ifelse(x[,3] == 1 & x[,4] == 1,3,ws)
}

Try the SimBindProfiles package in your browser

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

SimBindProfiles documentation built on Nov. 8, 2020, 5:57 p.m.