Learn R Programming

dplR (version 1.4.9)

po.to.wc: Function to convert pith offset to wood completeness

Description

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

Usage

po.to.wc(po)

Arguments

po
A data.frame containing two variables. Variable one (series) gives the series ID as either characters or factors. Variable two (pith.offset) is of integer type and gives the years from the beginning of th

Value

  • A data.frame containing one variable of wood completeness data: n.missing.heartwood. This can be used as input to write.tridas.

Details

Uses pith.offset - 1 as the number of missing heartwood rings.

See Also

wc.to.po, rcs, write.tridas

Examples

Run this code
data(gp.po)
all(wc.to.po(po.to.wc(gp.po)) == gp.po)

Run the code above in your browser using DataLab