examples/patchdata.R

library(daff)
x <- iris
#change a value
x[1,1] <- 1000

patch <- diff_data(iris, x)
print(patch)
# apply patch
iris_patched <- patch_data(iris, patch)

iris_patched[1,1] == 1000
edwindj/daff documentation built on Feb. 16, 2024, 3:12 p.m.