Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcollapse issue with double identifier #35

Open
baumsnow opened this issue Jan 12, 2022 · 2 comments
Open

fcollapse issue with double identifier #35

baumsnow opened this issue Jan 12, 2022 · 2 comments

Comments

@baumsnow
Copy link

Hi Sergio,

First - thanks very much for writing the gtools and ftools packages. Incredibly useful and a great public service!!!

I have found that with fcollapse, the results of the collapse are likely to be incorrect if the identifier is a very long double (in my example, census block identifiers). Another reminder that one should always use strings for identifiers, but I wanted to flag this issue. This issue does not show up using collapse or gcollapse.

Thanks -- Nate

@sergiocorreia
Copy link
Owner

Hi Nate,

Thanks for letting me know! Internally ftools should work with the same decimal precision as double, which is about 16 digits. Census blocks are 15 digits so I would have expected them to work. In any case, I agree that might be a good idea to issue a warning if I see identifiers above the maximum safe value of doubles, I'll add it to the to-do list.

BTW, by any chance do you have a toy example of this with census block identifiers? I want to double check that there's nothing off besides the 16-digit precision mentioned in help double.

Thanks!
Sergio

PS: gtools is actually by Mauricio Caceres, a PhD student at Brown!

@baumsnow
Copy link
Author

baumsnow commented Jan 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants