validate (version 0.9.3)

lbj_cells-class: Logging object to use with the lumberjack package

Description

Logging object to use with the lumberjack package

Arguments

Format

A reference class object

Methods

add(meta, input, output)

Add logging info based on in- and output

dump(file = NULL, verbose = TRUE, ...)

Dump logging info to csv file. All arguments in '...' except row.names are passed to 'write.csv'

initialize(..., verbose = TRUE, label = "")

Create object. Optionally toggle verbosity.

log_data()

Return logged data as a data.frame

Details

This obeject can used with the function composition ('pipe') operator of the lumberjack package. The logging is based on validate's cells function. The output is written to a csv file wich contains the following columns.

step integer Step number
time POSIXct Timestamp
expr character Expression used on data
cells integer Total nr of cells in dataset
available integer Nr of non-NA cells
missing integer Nr of empty (NA) cells
still_available integer Nr of cells still available after expr
unadapted integer Nr of cells still available and unaltered
unadapted integer Nr of cells still available and altered
imputed integer Nr of cells not missing anymore

See Also

Other loggers: lbj_rules-class