Learn R Programming

datetoiso (version 1.2.1)

compare_rows_with_same_index: Identifies and summarizes value-level changes between two datasets

Description

This function compares corresponding rows of two data frames and generates two columns:

Usage

compare_rows_with_same_index(new_df, old_df)

Value

A data frame augmented with two additional columns: `changed_cols` and `change_details`

Arguments

new_df

A data frame containing the most recent version of the data.

old_df

A data frame containing the preceding version of the data, used as the reference for comparison.

Author

Lukasz Andrzejewski

Details

* **changed_cols** — a list-column containing the names of variables in which at least one change has been detected. * **change_details** — a list-column describing the specific modifications for each changed variable, expressed as "previous value - new value".