| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/list.R |
| 3 |
\name{list_tidiers} |
| 4 |
\alias{list_tidiers} |
| 5 |
\alias{tidy.list} |
| 6 |
\alias{glance.list} |
| 7 |
\title{Tidying methods for lists / returned values that are not S3 objects} |
| 8 |
\usage{ |
| 9 |
\method{tidy}{list}(x, ...) |
| 10 |
|
| 11 |
\method{glance}{list}(x, ...) |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{x}{A list, potentially representing an object that can be tidied.} |
| 15 |
|
| 16 |
\item{...}{Additionally, arguments passed to the tidying function.} |
| 17 |
} |
| 18 |
\description{ |
| 19 |
Broom tidies a number of lists that are effectively S3 objects without |
| 20 |
a class attribute. For example, \code{\link[stats:optim]{stats::optim()}}, \code{\link[base:svd]{base::svd()}} and |
| 21 |
\code{\link[interp:interp]{interp::interp()}} produce consistent output, but because they do not |
| 22 |
have a class attribute, they cannot be handled by S3 dispatch. |
| 23 |
} |
| 24 |
\details{ |
| 25 |
These functions look at the elements of a list and determine if there is |
| 26 |
an appropriate tidying method to apply to the list. Those tidiers are |
| 27 |
themselves are implemented as functions of the form \verb{tidy_<function>} |
| 28 |
or \verb{glance_<function>} and are not exported (but they are documented!). |
| 29 |
|
| 30 |
If no appropriate tidying method is found, throws an error. |
| 31 |
} |
| 32 |
\seealso{ |
| 33 |
Other list tidiers: |
| 34 |
\code{\link{glance_optim}()}, |
| 35 |
\code{\link{tidy_irlba}()}, |
| 36 |
\code{\link{tidy_optim}()}, |
| 37 |
\code{\link{tidy_svd}()}, |
| 38 |
\code{\link{tidy_xyz}()} |
| 39 |
} |
| 40 |
\concept{list tidiers} |