po_find: po_find

Description Usage Arguments Value Examples

View source: R/po.R

Description

Estimates pith offset of series by finding the position with minimum RSS to existing regional curve.

Usage

1
2
3
4
5
6
7
8
9
po_find(
  rwl,
  rc,
  maxpo = NULL,
  min.overlap = 10,
  nyrs = NULL,
  f = 0.5,
  make.plot = TRUE
)

Arguments

rwl

rwl/data.frame object containing the tree ring series.

rc

existing "regional curve" as numeric.

maxpo

maximal po until which RSS gets calculated.

min.overlap

minimum overlap of the curve with the rc curve for a potential po to be mentioned.

nyrs

setting for the ffcsaps function used to smooth the series: a number greater than 1, affecting the rigidity of the spline. When f is kept constant, a larger nyrs produces a more rigid spline. Defaults to length(y)/2.

f

setting for the ffcsaps function used to smooth the series: a number between 0 and 1 giving the frequency response at a wavelength of nyrs years. When nyrs is kept constant, a smaller f produces a more rigid spline: At one extreme, f = 0 causes the function to return the least-squares straight line fit to the data. At the other extreme, f = 1 results in the natural spline, i.e. the function outputs y. The default value is 0.5.

make.plot

a logical indicating whether a plot should be drawn.

Value

a data.frame with the columns "series" and "po", containing the series names and po estimations (as cambial age of the first ring).

Examples

1
#no examples added in the current development version - will be added in future

konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.