df_diff: Test how dataframes are the same / different.

Description Usage Arguments Details Value Examples

Description

df_diff prints out how dataframes are the same and how they are different.

Usage

1
df_diff(x, y)

Arguments

x

First dataframe.

y

Second dataframe.

Details

Tests include

df_diff is unstable at the moment and should be considered a work in progress.

Value

Test results and differences are printed to standard out.

Examples

 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)

curtisalexander/CRAmisc documentation built on May 14, 2019, 12:52 p.m.