Learn R Programming

GaussSuppression (version 0.9.2)

PackageSpecs: Function for viewing built-in GaussSuppression specs

Description

Functions to retrieve the built-in specs. These can be retrieved using either numerical indices or by specifying the spec name, see Details.

Usage

PackageSpecs(x = NULL, printTable = FALSE)

Value

returns a spec (if !is.null(x)), list of all specs (if is.null(x)

and printTable = FALSE), or markdown table describing all specs (if printTable = TRUE).

Arguments

x

the character name or index of the spec to be returned. If NULL (default), returns list of all specs

printTable

Logical value (default FALSE). If TRUE, prints a table description of all specs. Primarily used for documentation purposes.

Details

The following table summarizes the built-in specs. Columns represent different specs, and rows represent the parameter settings.

smallCountSpecdominanceSpecfewContributorsSpeckDisclosureSpec
primaryPrimaryDefaultMagnitudeRuleNContributorsRuleKDisclosurePrimary
protectZerosTRUEFALSEFALSEFALSE
candidatesCandidatesDefaultCandidatesNumCandidatesNumDirectDisclosureCandidates
singletonSingletonDefaultSingletonUniqueContributorSingletonUniqueContributorSingletonDefault
extend0TRUEFALSEFALSETRUE
preAggregateis.null(freqVar)!is.null(charVar)!is.null(charVar)is.null(freqVar)
extraAggregateFALSETRUETRUEFALSE
secondaryZerosFALSEFALSEFALSE1
domWeightMethod"default"
singletonMethod"numttHTT""numttHTT""anySumNOTprimary"

Examples

Run this code
PackageSpecs()
PackageSpecs(1)
PackageSpecs("smallCountSpec")
PackageSpecs(printTable = TRUE)

Run the code above in your browser using DataLab