compare_sources | R Documentation |
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.
compare_sources(internal, external)
internal |
dataframe; dataframe from the internal database. |
external |
dataframe; dataframe from the external database. |
This function can be used in combination with bs4Badge to provide a status of the system.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.