Hi Alexis, thanksa lot. I have a problem when I try to aply some kind of tolerance for a new column named "wheelbase". It´s like I can not aply 2 functions for fuzzyjoin
``` r
df1<- data.frame(make= c("renault", "renault", "renault"), engine = c("1.6", "1.6", "1.5"), type = c("megane luxury", "megane priviledge", "megane luxe"),gearbox= c("dsg", "edc", "manual"),
lenght = c(2010, 2500, 3000), wheelbase= c(3500:3500))
df2<- data.frame(make= c("renault", "renault", "renault", "renault"),engine = c("1.6", "1.6", "1.6", "1.5"), type = c("megane luxury", "megane base", "megane priviledge", "megane base"),
lenght = c(2030, 5000, 2502, 4000), ID=1:4, wheelbase = c(3580:3580))
When I aply the below script I get an error:
fuzzyjoin::fuzzy_inner_join(df1, df2,
by=c("make", "engine", "type", "wheelbase", "lenght"),
list(make=`==`,
engine=`==`,
type=`==`,
wheelbase= function(x1,x2){abs(x1-x2) <= 60}),
lenght = function(x1,x2){abs(x1-x2) <= 60}))
Created on 2020-09-29 by the reprex package (v0.3.0)