| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/stats-time-series.R |
| 3 |
\name{tidy.ts} |
| 4 |
\alias{tidy.ts} |
| 5 |
\title{Tidy a(n) ts object} |
| 6 |
\usage{ |
| 7 |
\method{tidy}{ts}(x, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A univariate or multivariate \code{ts} times series object.} |
| 11 |
|
| 12 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 13 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 14 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 15 |
argument has a default value, the default value will be used. |
| 16 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 17 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 18 |
\itemize{ |
| 19 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 20 |
it will be ignored. |
| 21 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 22 |
will be ignored. |
| 23 |
}} |
| 24 |
} |
| 25 |
\description{ |
| 26 |
Tidy summarizes information about the components of a model. |
| 27 |
A model component might be a single term in a regression, a single |
| 28 |
hypothesis, a cluster, or a class. Exactly what tidy considers to be a |
| 29 |
model component varies across models but is usually self-evident. |
| 30 |
If a model has several distinct types of components, you will need to |
| 31 |
specify which components to return. |
| 32 |
} |
| 33 |
\details{ |
| 34 |
\code{series} column is only present for multivariate \code{ts} objects. |
| 35 |
} |
| 36 |
\examples{ |
| 37 |
|
| 38 |
set.seed(678) |
| 39 |
|
| 40 |
tidy(ts(1:10, frequency = 4, start = c(1959, 2))) |
| 41 |
|
| 42 |
z <- ts(matrix(rnorm(300), 100, 3), start = c(1961, 1), frequency = 12) |
| 43 |
colnames(z) <- c("Aa", "Bb", "Cc") |
| 44 |
|
| 45 |
tidy(z) |
| 46 |
} |
| 47 |
\seealso{ |
| 48 |
\code{\link[=tidy]{tidy()}}, \code{\link[stats:ts]{stats::ts()}} |
| 49 |
|
| 50 |
Other time series tidiers: |
| 51 |
\code{\link{tidy.acf}()}, |
| 52 |
\code{\link{tidy.spec}()}, |
| 53 |
\code{\link{tidy.zoo}()} |
| 54 |
} |
| 55 |
\concept{time series tidiers} |
| 56 |
\value{ |
| 57 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with columns: |
| 58 |
\item{index}{Index (i.e. date or time) for a `ts` or `zoo` object.} |
| 59 |
\item{series}{Name of the series (present only for multivariate time series).} |
| 60 |
\item{value}{The value/estimate of the component. Results from data reshaping.} |
| 61 |
|
| 62 |
} |