Enabling tbl_df Objects in R: Simplifying Data Frame Handling
setOldClass(c("tbl_df", "tbl", "data.frame"))
This will explain to S4 that tbl_df is really a data.frame. Now you should be able to get a tbl_df object with the same class as a data.frame, and assign it to an object of the permitted class.
Last modified on 2023-07-30