Closed nutterb closed 9 years ago
while I'm at it, how about fixing it so that if I pass a tbl_df or data.table, it still works instead of kicking back
Warning message:
In if (!class(object) == "data.frame") object <- broom::tidy(object, :
the condition has length > 1 and only the first element will be used
Having evaluated this further, I've decided against this idea as it makes it nearly impossible to retain the original object, which I may want further down the line.
Since there is a
data.frame
method inbroom
, it would make sense to have a genericdust
withdefault
anddata.frame
methods. Thedata.frame
method would need an additionaltidy=FALSE
argument, which would prevent the data frame summary from being calculated unless the user wanted it.