In SQL, you can execute joins by using commands like:
select x.var1, y.var2
from x left join y
on substring(x.var1, 1, 5) = y.var2;
Can you do similar manipulation of variables in dplyr (in R) when doing joins, or do the joins have to be done with only exact matches?
One comment suggested creating intermediate variables, but I wanted to know if there was a way around that.
(edited on statement to make it clearer)