compare_sources: Compare two data sources

View source: R/contacts.R

compare_sourcesR Documentation

Compare two data sources

Description

This function compare two dataframe and returns information about their differences. This function can be used to compare data from an internal source and an externa source. For example, the state epidemiologist contact list from the internal database and the external (CSTE website) database can be compared.

Usage

compare_sources(internal, external)

Arguments

internal

dataframe; dataframe from the internal database.

external

dataframe; dataframe from the external database.

Details

This function can be used in combination with bs4Badge to provide a status of the system.

Value

list that include 'res' (TRUE if both data sources are the same or FALSE if they are different). It also includes 'color' which can be used within 'bs4Dash::bs4Badge' to set the color of the badge. 'text' that can be used as a label for the badge. Finally, it includes 'changes' which describe the differences (as provided by 'setdiff') between the data sources.


renejuan/DERTtools documentation built on March 19, 2022, 7:20 a.m.