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

Add "near" operator #1607

Closed
hadley opened this issue Dec 31, 2015 · 0 comments
Closed

Add "near" operator #1607

hadley opened this issue Dec 31, 2015 · 0 comments
Labels
feature a feature request or enhancement
Milestone

Comments

@hadley
Copy link
Member

hadley commented Dec 31, 2015

near <- function(x, y, tol = .Machine$double.eps ^ 0.5) {
  abs(x - y) < tol
}
@hadley hadley added the feature a feature request or enhancement label Mar 1, 2016
@hadley hadley added this to the 0.5 milestone Mar 1, 2016
@hadley hadley closed this as completed in 0ebdf60 Mar 7, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant