Learn R Programming

dplR (version 1.6.8)

wc.to.po: Convert Wood Completeness to Pith Offset

Description

This function creates a pith offset data structure based on wood completeness data.

Usage

wc.to.po(wc)

Arguments

wc

A data.frame containing wood completeness data, as returned by read.tridas.

Value

A data.frame containing two variables. Variable one (series) gives the series ID as either characters or factors. These match rownames(wc). Variable two (pith.offset) is of integer type and gives the years from the beginning of the core to the pith (or center) of the tree. The minimum value is 1.

Details

Computes the sum of the variables n.missing.heartwood and n.unmeasured.inner in wc.

See Also

po.to.wc, rcs, read.tridas

Examples

Run this code
# NOT RUN {
library(utils)
data(gp.po)
all(wc.to.po(po.to.wc(gp.po)) == gp.po)
# }

Run the code above in your browser using DataLab