
Last chance! 50% off unlimited learning
Sale ends in
Patch data with a diff generated by diff_data
patch_data(data, patch)
data.frame
that has been patched.
data.frame
that should be patched
generated with diff_data
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
Run the code above in your browser using DataLab