Learn R Programming

sdcTarget (version 0.9-11)

estimateTimeToComputeTargetDefinition: Estimate Time To Complete Calculation of Target Definition

Description

This code provides a rough approximation for the number of seconds that a calculation of target definition may run.

Usage

estimateTimeToComputeTargetDefinition(X, cutoff = 1, cores = 1,
  na.recode = TRUE, Hdef = new("sdcHashingDefinitionClass", X = X, na.recode
  = na.recode))

Arguments

X
A data frame with the data (not necessarily standardised).
cutoff
The minimum residual cell size.
cores
The number of cores to be used in parallel processing. The default is linear processing: i.e., core = 1.
na.recode
Whether NA values should be treated as levels.
Hdef
A hashing definition (might be generated from a larger set of data).

Examples

Run this code
set.seed(256)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
estimateTimeToComputeTargetDefinition(X = my.X)

Run the code above in your browser using DataLab