filter() warning and unexpected result

This is not a valid operation and even if the two vectors were of the same length you wouldn't get the result you expect.

Use the %in% operator instead of == or use left_join() instead of filter()

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.