Impossible Values/Messy Data

Error: by must be supplied when x and y have no common variables.

That is the issue.

Can you provide a reproducible example?