Learn R Programming

dataCompare (version 1.0.5)

compare_data_frame_object: Function which perform the comparison of dataframe

Description

Function which perform the comparison of dataframe

Usage

compare_data_frame_object(df1, df2, id_var)

Value

An object of class "comparedf" as made by the 'comparedf' S3 method is returned.

Arguments

df1

The first dataframe of the comparison

df2

The second dataframe of the comparison

id_var

The character vector containing id variables which identify the observations in dataframe `df1` and datafram `df2`

Examples

Run this code
library(dplyr)
compare_data_frame_object(
     iris %>% dplyr::mutate(ID = row_number()), 
     iris %>% dplyr::mutate(ID = row_number()), 
     'ID')

Run the code above in your browser using DataLab