Learn R Programming

daff (version 0.2.0)

diff_data: Do a data diff

Description

Find differences with a reference data set. The diff can be used to patch_data, to store the difference for documentation purposes using write_diff or to visualize the difference using render_diff

Usage

diff_data(data_ref, data, ids = NULL, ignore = NULL, context = 1L, show_all = FALSE)

Arguments

data_ref
data.frame reference data frame
data
data.frame to check for changes
ids
character identification columns (not yet working)
ignore
character columns to ignore (not yet working)
context
integer number of context rows (not yet working)
show_all
logical show all rows or only changed rows? (not yet working)

Value

difference object

See Also

differs_from

Examples

Run this code
library(daff)
x <- iris
x[1,1] <- 10
diff_data(x, iris)

dd <- diff_data(x, iris)
#write_diff(dd, "diff.csv")

Run the code above in your browser using DataLab