Logic behind dplyr's keeping/stripping of data frame classes

Re. attributes: this is something that's known and being worked on right now. There are a few issues/threads in the dplyr github repo that you can peruse for more detail. And there's ~related discussion in this thread here:

Re. classes, I don't have a general answer, but the discussion between Hadley and Kiril re. S4 (linked to below) might be useful:

3 Likes