protectedData <- get(load(paste(searchpaths()[grep("sdcTable", searchpaths())], "/data/protectedData.RData", sep="")))
suppVec <- protectedData$outObj$status
pattern <- rep(FALSE, length(suppVec))
pattern[!is.na(match(suppVec, c("u","x")))] <- TRUE
c1 <- checkSuppressionPattern(protectedData, pattern, debug=FALSE, all=FALSE)
# remove a cell from the suppression pattern
pattern[which(suppVec=="x")[1]] <- FALSE
c2 <- checkSuppressionPattern(protectedData, pattern, debug=FALSE, all=FALSE, stop=FALSE)
print(c1$validPattern)
print(c2$validPattern)
Run the code above in your browser using DataLab