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
Thanks. melt up until 1.9.4 did not preserve attributes (this is also documented), to be consistent with reshape2. I'll try to commit the newer implementation of melt in 1.9.6 - and that preserves attributes as expected.
OK, thanks. I get the same behaviour with Date and POSIXct objects, but not with factors (which appear as characters not integers). It might be worth including tests on these types with your new version of melt.
Activity
arunsrinivasan commentedon Jan 3, 2015
Thanks.
meltup until 1.9.4 did not preserve attributes (this is also documented), to be consistent with reshape2. I'll try to commit the newer implementation ofmeltin 1.9.6 - and that preserves attributes as expected.If not, it'll most likely be in 1.9.8.
richierocks commentedon Jan 4, 2015
OK, thanks. I get the same behaviour with
DateandPOSIXctobjects, but not withfactors (which appear as characters not integers). It might be worth including tests on these types with your new version ofmelt.arunsrinivasan commentedon Jan 4, 2015
Yes. It was to be consistent with inconsistency of melt from reshpe2. But I won't do that anymore.
arunsrinivasan commentedon Feb 27, 2015
This commit 07b90de fixes it.
meltnow retains attributes wherever possible.Closes #702, Closes #993. Melt preserves attributes in result.