Functions for comparing two data.frames against each other. The core functionality is to provide a detailed breakdown of any differences between two data.frames as well as providing utility functions to help narrow down the source of problems and differences.
The diffdf package is designed to enable detailed comparison of two data.frames. Whilst many packages exist for informing you if there are differences between data.frames, none provide as much detail on what and where those differences are as diffdf does!
Currently diffdf supports the following:
For more information on features please consult the vignette and man pages.
You can install the released version of diffdf from CRAN with:
And the development version from GitHub with:
library(diffdf)iris2 <- irisfor (i in 1:3) iris2[i,i] <- i^2iris2$new_var <- "hello"class(iris2$Species) <- "some class"diffdf(iris, iris2)