arguments imply differing number of rows in Data Frame Error

And it would be helpful if you could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.