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
as.data.table should remove extra attributes from extended data.frames #5699
Many times, one has to use haven to read data with SPSS, Stata or excel formats, which obviously produces tibbles. Fortunately, they can be transformed to data.table's and, for the moment, these transformations keep attributes, particularly variable labels. IMO, removing that information is not a big thing.
Activity
custom data.frame classes redirected to as.data.frame before as.data.…
iagogv3 commentedon Nov 19, 2024
Unmotivating the use of
data.table...Many times, one has to use
havento read data with SPSS, Stata or excel formats, which obviously produces tibbles. Fortunately, they can be transformed to data.table's and, for the moment, these transformations keep attributes, particularly variable labels. IMO, removing that information is not a big thing.Although I use
setDTinstead ofas.data.table...MichaelChirico commentedon Jan 17, 2025
I think that removal of attributes by
as.*methods is the norm in R... users wishing to retain attributes should do so explicitly.It's somewhat inconvenient but I think it's more the expected behavior from experienced R users.
custom data.frame classes redirected to as.data.frame before as.data.…
(textproc/R-data.table) Updated 1.16.4 to 1.18.4, Fix build against 4…
(textproc/R-data.table) Updated 1.16.4 to 1.18.4, Fix build against 4…