Can you show the structure of your data frame or even better can you provide a proper REPRoducible EXample (reprex) illustrating your issue?
Can you show the structure of your data frame or even better can you provide a proper REPRoducible EXample (reprex) illustrating your issue?