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 dplyr
to work. Is this possible?
test<- inner_join(xxx, yyy, by = c("ID" = "ID",
"NRA"="NRA",
"date_low">"date",
"date_high"<"date"),
copy = FALSE)