R: Convert Wood Completeness to Pith Offset

wc.to.po {dplR} | R Documentation

## 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`.

### Details

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

### Value

A `data.frame` containing two variables. Variable one (`series`) gives the series ID as either `character`s or `factor`s. 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.

### Author(s)

Mikko Korpela

### See Also

`po.to.wc`, `rcs`, `read.tridas`

### Examples

    library(utils)
    data(gp.po)
    all(wc.to.po(po.to.wc(gp.po)) == gp.po)

[Package dplR version 1.7.1 Index]