tidyverse / funs

Collection of low-level functions for working with vctrs
Other
34 stars 7 forks source link

Implement near #36

Open hadley opened 4 years ago

romainfrancois commented 3 years ago

Current dplyr version is:

function(x, y, tol = .Machine$double.eps^0.5) {
  abs(x - y) < tol
}

Should this be a generic, i.e. do we have some metric of proximity for other types ?

hadley commented 3 years ago

Probably just need to use vctrs recycling rules and check that x and y are numeric?

Might want to prepare a little checklist of funs functions — like confirm recycling and types? Maybe documentation should have some standard way of describing?