Let's say I have a data.frame with an age variable and I don't notice it is a character variable. I want to subset to the rows that are at least 12 years old. It will yield the following:
This is because 12 is converted to a character in the backend.
Is there a way to know that this conversion happened?
As a reference, in SAS, a message is generated such as Character values have been converted to numeric values at the places given by: (Line):(Column). 40:12
Yes, this is based on something that happened in real code. We figured out the issue but it was far from obvious. Only because some counts weren't matching in places that should have of tables made by different folks.