Learn R Programming

sdcMicro (version 5.6.1)

report: Generate an Html-report from an sdcMicroObj

Description

Summary statistics of the original and the perturbed data set

Usage

report(
  obj,
  outdir = getwd(),
  filename = "SDC-Report",
  title = "SDC-Report",
  internal = FALSE,
  verbose = FALSE
)

Arguments

obj

an object of class sdcMicroObj-class or reportObj

outdir

output folder

filename

output filename

title

Title for the report

internal

TRUE/FALSE, if TRUE a detailled internal report is produced, else a non-disclosive overview

verbose

TRUE/FALSE, if TRUE, some additional information is printed.

Author

Matthias Templ, Bernhard Meindl

Details

The application of this function provides you with a html-report for your sdcMicro object that contains useful summaries about the anonymization process.

Examples

Run this code
if (FALSE) {
data(testdata2)
sdc <- createSdcObj(testdata2,
  keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'),
  numVars=c('expend','income','savings'), w='sampling_weight')
report(sdc)
}

Run the code above in your browser using DataLab