diff_data | R Documentation |
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
diff_data(
data_ref,
data,
always_show_header = TRUE,
always_show_order = FALSE,
columns_to_ignore = c(),
count_like_a_spreadsheet = TRUE,
ids = c(),
ignore_whitespace = FALSE,
never_show_order = FALSE,
ordered = TRUE,
padding_strategy = c("auto", "smart", "dense", "sparse"),
show_meta = TRUE,
show_unchanged = FALSE,
show_unchanged_columns = FALSE,
show_unchanged_meta = FALSE,
unchanged_column_context = 1L,
unchanged_context = 1L
)
data_ref |
|
data |
|
always_show_header |
|
always_show_order |
|
columns_to_ignore |
|
count_like_a_spreadsheet |
|
ids |
|
ignore_whitespace |
|
never_show_order |
|
ordered |
|
padding_strategy |
|
show_meta |
|
show_unchanged |
|
show_unchanged_columns |
|
show_unchanged_meta |
|
unchanged_column_context |
|
unchanged_context |
|
difference object
differs_from
library(daff)
x <- iris
x[1,1] <- 10
diff_data(x, iris)
dd <- diff_data(x, iris)
#write_diff(dd, "diff.csv")
summary(dd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.