Skip to content

all.equal only reports differences in first column with differences #7903

Description

@BartJanvanRossum

When comparing two data.tables with differences in multiple columns only the difference in the first column is printed.
See the code below:

dt1 <- data.table(A = 1:5, B = 1:5)
dt2 <- data.table(A = 2:6, B = 2:6)

all.equal(dt1, dt2)

df1 <- data.frame(A = 1:5, B = 1:5)
df2 <- data.frame(A = 2:6, B = 2:6)

all.equal(df1, df2)

I expected similar output printed as when using all.equal on two data.frames, i.e. both columns that have differences reported. The latter is also what is described as output value for the function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions