I prefer data.tables for all the code processing I do. But others on my team using my functions aren't comfortable with data.tables, so most of the libraries I write end with
return(data.frame(DT)) Is there any copying or other overhead happening there? Since it inherits from data.frame, I think the answer is no. Now, if I have a function that does such a return, but I wrap that itself in a data.table call: data.table(func_that_returns_df()) Is there any inefficiency there? Is there a difference between data.table() and as.data.table() here?
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
