marianschmidt / msAutolabelR

Wrapper function for the sjlabelled package for basic data management operations
GNU General Public License v3.0
2 stars 0 forks source link

Make sure that change_format_dataframe() preserves long IDs #3

Open marianschmidt opened 4 years ago

marianschmidt commented 4 years ago

msAutolabelR::change_formats_dataframe() when converting numeric IDs to character values. This might convert long IDs to unexpected strings. Maybe change msAutolabelR::change_formats_dataframe() to be more robust. https://stackoverflow.com/questions/37025196/how-do-you-control-the-formatting-of-digits-when-converting-lists-of-numbers-to

marianschmidt commented 4 years ago

I have noticed that on SEER data renumber_time_id_dt() and renumber_time_id() result in data that fail all.equal() tests. In the data.table version one row gets an invalid ID with PUBCSNUM value of "1.4e+07" --> see first script 01