Skip to content
Prev 14909 / 20628 Next

Managing person identifier variable

Just a quick pointer here which is that if the persID values contained leading zeros that are a material part of the unique IDs, such as:

  01234
  001234

then coercing to factors, after having been coerced to numeric values, will result in both of the above being 1234:
[1] 1234
Levels: 1234
[1] 1234
Levels: 1234


Food for thought...

Regards,

Marc Schwartz