Skip to content

how to do comparisons for each object type? #6

@sckott

Description

@sckott

to get a boolean

  • logical/vector of logicals: ==, all(x == y)
  • character: identical(x, y)
  • factor: coerce to charcter as.character then proceed
  • integer: identical(x, y)
  • numeric: identical(x, y)
  • list: ?
  • data.frame: visdat::vis_compare() ?
  • matrix: ?
  • function: identical(x, y)
  • environment: ?
  • all other custom classes: user provide a function/callback to do the comparison, via $compare()

to sort out what's different

to do

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions