print.redfit | R Documentation |
Print information contained in or derived from a redfit object.
## S3 method for class 'redfit'
print(x, digits = NULL, csv.out = FALSE, do.table = FALSE,
prefix = "", row.names = FALSE, file = "", ...)
x |
An object of class |
digits |
Specifies the desired number of significant digits in
the output. The argument is passed to |
csv.out |
A |
do.table |
A |
prefix |
A prefix to be used on every output line except the
large information table. REDFIT (see |
row.names |
A |
file |
A writable connection or a character string naming a
file. Used for setting the output destination when
|
... |
Arguments to |
Invisibly returns x
.
Mikko Korpela
This function is based on the Fortran program REDFIT, which is in the public domain.
Schulz, M. and Mudelsee, M. (2002) REDFIT: estimating red-noise spectra directly from unevenly spaced paleoclimatic time series. Computers & Geosciences, 28(3), 421–426.
redfit
library(utils)
data(ca533)
tm <- time(ca533)
x <- ca533[[1]]
idx <- which(!is.na(x))
redf <- redfit(x[idx], tm[idx], "time",
nsim = 100, iwin = 0, ofac = 1, n50 = 1)
print(redf)
fname <- tempfile(fileext=".csv")
print(fname) # tempfile used for output
print(redf, csv.out = TRUE, file = fname)
redftable <- read.csv(fname)
unlink(fname) # remove the file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.