crossRings {measuRing}R Documentation

dplR crossdating

Description

This function implements routines in dplR to crossdate TRWs.

Usage

crossRings(mdr, smp = 1, ncol = 1:length(mdr), fun = "corr", 
    ...)

Arguments

mdr

list. Set of detected TRWs such as that produced by multiDetect.

smp

numeric or character. Position or name in the set of the sample being crossdated.

ncol

numeric or character. Positions or names in the set of the TRWs used to crossdate the sample.

fun

character. Function in dplR to be implemented. Three functions can be used: corr.rwl.seg ('corr'), ccf.series.rwl ('ccf'), and spag.plot ('spag').

...

arguments to be passed to the dplR function.

Value

output of selected function.

Author(s)

Wilson Lara, Carlos Sierra, Felipe Bravo

Examples

## Paths to three image sections in the package:
img <- system.file(c("P105_a.tif",
                     "P105_b.tif",
                     "P105_d.tif"),
                   package="measuRing")

## Recursive detection:
mrings <- multiDetect(img,
                      last.yr = 2013,
                      auto.det = TRUE,
                      plot = FALSE)

## corr analysis
crossRings(mrings,
           fun = 'corr',
           seg.length = 10,
           bin.floor = 0,
           lag.max = 2,
           make.plot = FALSE)

[Package measuRing version 0.5 Index]