Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to do comparisons for each object type? #6

Open
sckott opened this issue Aug 16, 2019 · 0 comments
Open

how to do comparisons for each object type? #6

sckott opened this issue Aug 16, 2019 · 0 comments

Comments

@sckott
Copy link
Owner

sckott commented Aug 16, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant