Learn R Programming

measuRing (version 0.5.1)

crossRings: dplR crossdating

Description

This function implements routines to crossdate TRWs.

Usage

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

Value

output of selected function.

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 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 function.

Author

Wilson Lara <wilarhen@gmail.com> [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Carlos Sierra [aut] (<https://orcid.org/0000-0003-0009-4169>), Felipe Bravo [aut] (<https://orcid.org/0000-0001-7348-6695>)

Examples

Run this code
## 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)

Run the code above in your browser using DataLab