I want to join two tables xxx and yyy using a composite unique key and date ranges. In sql I would simply specify in the join but I cannot get
xxx
yyy
We could use fuzzy_inner_join from fuzzy_join
fuzzy_inner_join
fuzzy_join
library(fuzzy_join) fuzzy_inner_join(xxx, yyy, by = c("ID" = "ID", "NRA"="NRA", "date_low" = "date", "date_high" = "date"), match_fun = list("==", "==", ">", "<"))