R/spectrumrob.R

spectrumrob <- function(x, method = c("pgram", "acf"), plot = TRUE, ...){
  method <- match.arg(method)
  res <- switch(method, pgram = spectrumrob.pgram(x, ...), acf = spectrumrob.acf(x, ...))
	if (plot) {
		plot(res)
		return(invisible(res))
	} else {
    return(res)
  }
}

Try the robts package in your browser

Any scripts or data that you put into this service are public.

robts documentation built on May 2, 2019, 4:55 p.m.