View source: R/PrimaryRemoveWg.R
PrimaryRemoveWg | R Documentation |
The SSBtools function WildcardGlobbing
is utilized
PrimaryRemoveWg(wg = NULL, ..., crossTable)
CandidatesNumWg(wg = NULL, ..., crossTable)
ForcedWg(crossTable, wg = NULL, ...)
wg |
data.frame with wildcard/globbing.
A parameter to |
... |
unused parameters |
crossTable |
crossTable generated by parent function |
CandidatesNumWg
is a generalization of CandidatesNumWg
logical vector or row indices
dataset <- SSBtoolsData("magnitude1")
a1 <- SuppressDominantCells(data = dataset, numVar = "value",
dimVar = c("sector4", "geo"), n = 1:2, k = c(77, 99))
a1
wg <- data.frame(sector4 = "Ind*", geo = c("Ice????", "Portugal"))
wg
# Industry:Portugal not primary, but suppressed
a2 <- SuppressDominantCells(data = dataset, numVar = "value",
dimVar = c("sector4", "geo"), n = 1:2, k = c(77, 99),
wg = wg, primary = c(DominanceRule, PrimaryRemoveWg))
a2
# Industry:Portugal not primary and not suppressed
a3 <- SuppressDominantCells(data = dataset, numVar = "value",
dimVar = c("sector4", "geo"), n = 1:2, k = c(77, 99),
wg = wg, primary = c(DominanceRule, PrimaryRemoveWg),
candidates = CandidatesNumWg)
a3
# Industry:Portugal primary, but not suppressed
a4 <- SuppressDominantCells(data = dataset, numVar = "value",
dimVar = c("sector4", "geo"), n = 1:2, k = c(77, 99),
wg = wg, forced = ForcedWg, whenPrimaryForced = message)
a4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.