R/print.summary.tsd.R

"print.summary.tsd" <-
function(x, ...) {
    cat(" Call:\n")
    cat(" ")
    dput(x$call)
    ser <- x$ts
    if (length(ser) == 1) {		# We have the decomposition of a single series in the object
    	cat("\nComponents\n")
    	print(x$series)
    } else {					# We have the decomposition of several series in the object
    	cat("\nSeries:\n")
		print(x$ts)
		cat("\n")
    	for (i in 1:length(ser)) {
    		cat("\nComponents for", ser[i], "\n")
    		print(x$series[[i]][1:10,])
    	}
    }
	invisible(x)
}

Try the pastecs package in your browser

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

pastecs documentation built on May 2, 2019, 3:36 p.m.