By default, tidy uses as.data.frame
to convert its output. This is
dangerous, as it may fail with an uninformative error message.
Generally tidy is intended to be used on structured model objects
such as lm or htest for which a specific S3 object exists.
# S3 method for default
tidy(x, ...)
an object to be tidied
extra arguments (not used)
A data frame, from as.data.frame
applied to the input x.
If you know that you want to use as.data.frame
on your untidy
object, just use it directly.