Learn R Programming

dplRCon (version 1.0)

TruncSeriesPithoffset: Truncate series by range pithoffsets

Description

The following function truncate the data by a given range from the estimated pith.

Usage

TruncSeriesPithoffset(file.raw, file.stand, pithoffset, range)

Arguments

file.raw
data file containing the raw ring widths, in mm
file.stand
data file containing the standardized ring widths
pithoffset
data set containing the pith offsets for each core, in mm.
range
The distance from the pith use for truncation, given in mm from the core. e.g. range <- c(1,200) truncates values outside this range.

Value

sub.series.raw
A truncated series of raw ring widths (in miromilmeter).
sub.series.stand
A truncated series of standardized ring widths (in miromilmeter).

Examples

Run this code
## Not run: 
# data(ring.raw)
# data(ring.stand)
# data(dbh.po.nc)
# #Subset near-pith is the material within 0 -20cm from the estimated pith
# spline200.sub0.20.n   <- TruncSeriesPithoffset( ring.raw, ring.stand, dbh.po.nc, c(1,200))
# # Subset far-pith is the material further than 20cm from the estimated pith
# spline200.sub20.2000.n  <- TruncSeriesPithoffset( ring.raw, ring.stand, dbh.po.nc, c(200,200000))
# # Whole dataset, through truncated functions to get in the same formate as the above two datasets
# spline200.sub0.2000.n  <- TruncSeriesPithoffset( ring.raw, ring.stand, dbh.po.nc, c(00,200000))## End(Not run)

Run the code above in your browser using DataLab