compare_data_frame_object {dataCompare} | R Documentation |
Function which perform the comparison of dataframe
compare_data_frame_object(df1, df2, id_var)
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' |
An object of class "comparedf" as made by the 'comparedf' S3 method is returned.
library(dplyr)
compare_data_frame_object(
iris %>% dplyr::mutate(ID = row_number()),
iris %>% dplyr::mutate(ID = row_number()),
'ID')