Learn R Programming

sdcTarget (version 0.9-11)

sdcHashClass-class: S4 Hash Class

Description

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

Usage

## S3 method for class 'sdcHashClass':
initialize(.Object, ...)

Arguments

.Object
A sdcHashingDefinitionClass object.
...
The optional parameters specifying the data and other options.

Methods (by generic)

  • initialize:

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab