Summary method for objects of class ‘freqCalc’ to provide information about local suppressions.

# S3 method for freqCalc
summary(object, ...)

Arguments

object

object from class freqCalc

...

Additional arguments passed through.

Value

Information about local suppression in each variable (only if a local suppression is already done).

Details

Shows the amount of local suppressions on each variable in which local suppression was applied.

See also

Author

Matthias Templ

Examples


## example from Capobianchi, Polettini and Lucarelli:
data(francdat)
f <- freqCalc(francdat, keyVars=c(2,4,5,6),w=8)
f
#> 
#>  --------------------------
#> 4 obs. violate 2-anonymity 
#> 8 obs. violate 3-anonymity 
#>  --------------------------
f$fk
#> [1] 2 2 2 1 1 1 1 2
f$Fk
#> [1] 110.0  84.5  84.5  17.0 541.0   8.0   5.0 110.0
## individual risk calculation:
indivf <- indivRisk(f)
indivf$rk
#> [1] 0.01714426 0.02204233 0.02204233 0.17707583 0.01165448 0.29706308 0.40235948
#> [8] 0.01714426
## Local Suppression
localS <- localSupp(f, keyVar=2, threshold=0.25)
#> 2observations has individual risks >=0.25and were suppressed!
f2 <- freqCalc(localS$freqCalc, keyVars=c(4,5,6), w=8)
summary(f2)
#> 
#>  Suppressions: