Learn R Programming

timesboot (version 1.0)

redraw: Auxiliary function that computes the spectrum

Description

Auxiliary function that computes the spectrum

Usage

redraw(series, ...)

Arguments

series
A time series object
...
optional arguments

Value

spec
Periodogram

Examples

Run this code
function (series, ...) 
{
    args <- list(...)
    ws = spec.pgram(series, spans = args$p, plot = FALSE, detrend = args$detrend)
    return(ws$spec)
  }

Run the code above in your browser using DataLab