Return a data.frame containing only the columns where the rows are not identical.

row_compare(.df)

Arguments

.df

data.frame containing rows to compare

Examples

row_compare(mtcars[1:3,])
#>                mpg cyl disp  hp drat    wt  qsec vs carb
#> Mazda RX4     21.0   6  160 110 3.90 2.620 16.46  0    4
#> Mazda RX4 Wag 21.0   6  160 110 3.90 2.875 17.02  0    4
#> Datsun 710    22.8   4  108  93 3.85 2.320 18.61  1    1