Learn R Programming

sdcTarget (version 0.9-11)

sdcHashingDefinitionClass-class: Hashing Definition (S4 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 '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.

Methods (by generic)

  • initialize:

Details

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

Examples

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

Run the code above in your browser using DataLab