patch_data | R Documentation |
Patch data with a diff generated by diff_data
patch_data(data, patch)
data |
|
patch |
generated with diff_data |
data.frame
that has been patched.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.