You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
melt segfault when duplicated column names exist in DT #1055
The segfault doesn't happen with shorter datatables
I hope the above is helpful for debugging
sessionInfo()
#R version 3.1.2 (2014-10-31)#Platform: x86_64-apple-darwin13.4.0 (64-bit)#locale:#[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8#attached base packages:#[1] stats graphics grDevices utils datasets methods base #other attached packages:#[1] data.table_1.9.5#loaded via a namespace (and not attached):#[1] chron_2.3-45
Thanks Arun for the fix!
I occasionally receive files with age groups as columns. It is 5 year age groups but I usually want 10 year groups. So I rename the columns to 10 year age groups (and I intentionally create duplicate column names). Then melt and then aggregate by 10 year age group. It feels quicker than the other way around
I just noticed it because my scripts stopped working after the update.
Activity
arunsrinivasan commentedon Mar 2, 2015
Nice catch, thanks! Out of curiosity, do you use data.tables with duplicate names, or is it something you were just testing out?
ChristK commentedon Mar 2, 2015
Thanks Arun for the fix!
I occasionally receive files with age groups as columns. It is 5 year age groups but I usually want 10 year groups. So I rename the columns to 10 year age groups (and I intentionally create duplicate column names). Then melt and then aggregate by 10 year age group. It feels quicker than the other way around
I just noticed it because my scripts stopped working after the update.
arunsrinivasan commentedon Mar 2, 2015
Cool! Thanks 👍 .