Error in n > 1 : comparison (6) is possible only for atomic and list types

I have no visibility into why your data frame is different in the absence of a reprex