sdcHashClass-class: S4 Hash 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 'sdcHashClass'
initialize(.Object, ...)

Arguments

.Object

A sdcHashingDefinitionClass object.

...

The optional parameters specifying the data and other options.

Details

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

Does not currently permit use of an arbitrary hashing definition.

Methods (by generic)

Slots

.Data

A matrix.

Hdef

The hashing definition on which the sdcHashClass object is built.

forward

Logical indicating whether a forward hash or a backward hash, in terms of field order, has been used.

hash

A character string containing one hash representation for each data record.

Examples

1
2
3
4
5
6
new("sdcHashClass")
new("sdcHashClass")
my.X <- data.frame(matrix(ifelse(runif(5000)>.5, TRUE, FALSE), ncol = 50))
new("sdcHashClass", X = my.X)
new("sdcHashClass", X = my.X, na.recode = FALSE, which = 2:4,
    forwardHashing = TRUE)

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