changeDetector: changeDetector

View source: R/changeDetector.R

changeDetectorR Documentation

changeDetector

Description

This function compares a dataframe before and after something has been done to it. It will indicate the number of rows (before and after), and if fields are specified, it will also indicate how many unique values of each of the specified fields were present before and after the change.

Usage

changeDetector(pre_ = NULL, post_ = NULL, fields = NULL, flagTxt = NULL)

Arguments

pre_

default is NA This is dataframe prior to the change

post_

default is NULL TThis is dataframe after the change

fields

default is NULL This is a vector of field names for which you are interested in the number of unique values before and after the change

flagTxt

default is NULL This is text you would like to be displayed before listing the results. For debugging, it's useful to set this text as a description of the processing step that was just done.

Value

nothing, it just writes messages to the screen

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other debugging: updateExpected(), where_now()


Maritimes/Mar.utils documentation built on Feb. 12, 2024, 11:38 p.m.