Description Usage Arguments Value Examples
Compare two dataframes using daff package.
1 2 |
old.df |
Old dataframe |
new.df |
New dataframe (to evaluate changes compared to old.df). |
output |
character. |
file |
Character. Path to save diff results in a HTML file (optional). |
A difference
object. See diff_data
. Also,
optionally, an HTML file or data.frame.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | old <- iris
new <- old
new[1, 2] <- 3.8
new <- new[- 4, ]
data_diff(old, new)
## Diff two Excel files
# (or any two files that can be imported by \pkg{rio})
## Not run:
library(rio)
old <- import("old.xls")
new <- import("new.xls")
data_diff(old, new)
# Including output in Rmarkdown document:
kable(data_diff(old, new, output = "data.frame"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.