Debian Codegraph @

man/tidy.spec.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/stats-time-series.R
3 \name{tidy.spec}
4 \alias{tidy.spec}
5 \title{Tidy a(n) spec object}
6 \usage{
7 \method{tidy}{spec}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{spec} object created by \code{\link[stats:spectrum]{stats::spectrum()}}.}
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 \examples{
34 \dontshow{if (rlang::is_installed("ggplot2")) withAutoprint(\{ # examplesIf}
35
36 spc <- spectrum(lh)
37 tidy(spc)
38
39 library(ggplot2)
40 ggplot(tidy(spc), aes(freq, spec)) +
41 geom_line()
42 \dontshow{\}) # examplesIf}
43 }
44 \seealso{
45 \code{\link[=tidy]{tidy()}}, \code{\link[stats:spectrum]{stats::spectrum()}}
46
47 Other time series tidiers:
48 \code{\link{tidy.acf}()},
49 \code{\link{tidy.ts}()},
50 \code{\link{tidy.zoo}()}
51 }
52 \concept{time series tidiers}
53 \value{
54 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
55 \item{freq}{Vector of frequencies at which the spectral density is estimated.}
56 \item{spec}{Vector (for univariate series) or matrix (for multivariate series) of estimates of the spectral density at frequencies corresponding to freq.}
57
58 }