sdcHashingDefinitionClass-class: Hashing Definition (S4 Class)

Description Usage Arguments Details Methods (by generic) Slots Examples

Description

This class defines the data hash that is used to identify cells to be targeted for statistical disclosure control.

Usage

1
2
## S4 method for signature 'sdcHashingDefinitionClass'
initialize(.Object, ...)

Arguments

.Object

A sdcHashingDefinitionClass object.

...

The optional parameters specifying the data and whether NA values are to be recoded and hashed. Recoding is TRUE by default.

Details

The hashing definition presently handles only categorical fields, which limits the applicability of this software accordingly.

Methods (by generic)

Slots

parts

The number of hashing components.

coverage

The number of elements in each hashing component.

lengths

The number of levels of each field to be hashed.

na.exists

Whether there is an NA value in each field to be hashed.

na.recode

Whether NA values should be treated as levels.

levels

The number of levels of each field to be hashed.

Examples

1
2
3
4
5
new("sdcHashingDefinitionClass")
new("sdcHashingDefinitionClass")
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
new("sdcHashingDefinitionClass", X = my.X)
new("sdcHashingDefinitionClass", X = my.X, na.recode = FALSE)

sdcTarget documentation built on May 2, 2019, 8:16 a.m.