Learn R Programming

sdcTarget (version 0.9-11)

sdcProcessCells: Identify or Remove Small or Large Cells From a Hash List

Description

Returns a hash list identifying the appropriate cells, or a subset of the data provided with the specified cells removed.

Usage

identifySmallCells(Y, cutoff = 1)

identifyBigCells(Y, cutoff = 1)

identifySmallCellRecords(Y, cutoff = 1)

identifyBigCellRecords(Y, cutoff = 1)

removeSmallCellRecords(X, Y, cutoff = 1)

removeBigCellRecords(X, Y, cutoff = 1)

Arguments

Y
A hash list as returned by sdcHashClass.
cutoff
The lower or upper cutoff of cell size.
X
A data frame corresponding to Y.

See Also

sdcHashClass,

Examples

Run this code
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
identifySmallCells(my.hc)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
identifyBigCells(my.hc)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
identifySmallCellRecords(my.hc)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
identifyBigCellRecords(my.hc)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
removeSmallCellRecords(my.X, my.hc)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.hc <- new("sdcHashClass", X = my.X)
removeBigCellRecords(my.X, my.hc)

Run the code above in your browser using DataLab