Description Usage Arguments Details Value Examples
df_diff
prints out how dataframes are the same and how they are
different.
1 | df_diff(x, y)
|
x |
First dataframe. |
y |
Second dataframe. |
Tests include
Equal # of rows
Equal # of columns
Row names are the same
Column names are the same
Class(es) is / are the same
Column types are the same - work in progress
Values within each column are the same
df_diff
is unstable at the moment and should be considered a work in
progress.
Test results and differences are printed to standard out.
1 2 3 4 5 6 7 8 9 10 | x <- tibble::tribble(
~col1, ~col2,
1, "a",
2, "b",
3, "c"
)
y <- data.frame(col1 = 1:3, col2 = c("a", "b", "d"), col3 = c(10, 11, 12))
df_diff(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.