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
The text was updated successfully, but these errors were encountered:
Kamgang-B
changed the title
The new function DT() used for chaining/piping does drops data.frame rownames names
The new function DT() used for chaining/piping drops data.frame rownames names
Aug 4, 2022
Maybe I was not clear enough, Note that the input here is not a data.table but a data.frame (as apposed to data.table which is its extension). DT() works with data.frame's too (not only data.tables).
I personally think that the row names should be kept too since the input and output in this case support row names, and in my example it has row names.
The reasons you refer to are likely those specific to data.table.
I noticed that the new function
DT()
drops row names when applied todata.frame
.The text was updated successfully, but these errors were encountered: