R/setFlagCompensation.R

Defines functions setFlagCompensation

setFlagCompensation <- function(x, cutoff) {
    ws <- 0
    ws <- ifelse(x[,4] == 1 & x[,5] == 1 & x[,6] == 0 & (((x[,1]+x[,2])/2 - x[,3]) >= cutoff),1,ws) # 1,1,0
}

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.