| xdate.floater {dplR} | R Documentation |
Pulls an undated series through a dated rwl file in order to try to establish dates
xdate.floater(rwl, series, series.name = "Unk", min.overlap = 50, n = NULL,
prewhiten = TRUE, biweight = TRUE,
method = c("spearman", "pearson","kendall"),
make.plot = TRUE,return.rwl = FALSE, verbose = TRUE)
rwl |
a |
series |
a |
series.name |
a |
min.overlap |
number |
n |
|
prewhiten |
|
biweight |
|
method |
Can be either |
make.plot |
|
return.rwl |
|
verbose |
|
This takes an undated series (a floater) and drags it along a dated rwl object in order to estabish possible dates for the series. This function is experimental and under development. It might change in future releases.
By default a data.frame is returned with the first and last year of the period compared as well as the correlation, p-value, and number of observations. If return.rwl is TRUE then a list is returned with the rwl object as well as the data.frame with the correlation statistics.
Andy Bunn. Patched and improved by Mikko Korpela.
corr.series.seg, skel.plot,
series.rwl.plot, ccf.series.rwl
library(utils) data(co021) summary(co021) foo <- co021[,"645232"] # 645232 1466 1659 bar <- co021 bar$"645232" <- NULL out <- xdate.floater(bar, foo, min.overlap = 50, series.name = "Undated") foo <- co021[,"646118"] # 646118 1176 1400 bar <- co021 bar$"646118" <- NULL out <- xdate.floater(bar, foo, min.overlap = 100, series.name = "Undated") # note that this can fail if a long overlap is needed. This produces the # wrong dates. out <- xdate.floater(bar, foo, min.overlap = 200, series.name = "Undated")