| get_RW {densitr} | R Documentation |
Get ring widths from identified tree rings
Description
Called on an object returned by dprings, it will return ring
widths for all detected rings. The units are determined by the
xUnit from the footer of density profile.
Usage
get_RW(rings)
Arguments
rings |
A data frame with the identified rings, a result of the dprings() call on an individual profile |
Value
A vector of ring widths, which are peak-to-peak differences.
See Also
dprings
Examples
## load a single file
dp <- dpload(system.file("extdata", "00010001.dpa", package = "densitr"))
## trim and detrend the measurement
dp.trimmed <- dptrim(dp)
dp.detrended <- dpdetrend(dp.trimmed, type = "gam")
## identify rings
rings <- dprings(dp.detrended)
## get tree ring widths:
get_RW(rings)
[Package densitr version 0.2 Index]