getDensity {xRing} | R Documentation |
Get Density Values
Description
Get wood density parameters by tree-ring.
Usage
getDensity(x)
Arguments
x |
a "xRingList" or "xRing" object |
Value
a "xRingList" or "xRing" object with density values c("Dmean", "Dmin", "Dmax", "Dew", "Dlw") for each ring
Examples
data(PaPiRaw)
data(PaPiSpan)
PaPi <- detectRings(PaPiRaw, PaPiSpan)
PaPi.merge <- combineFrag(PaPi, frag = 9)
PaPiRings <- detectEwLw(PaPi.merge, ew = 0.5)
PaPi <- detectRings(PaPiRaw, PaPiSpan)
PaPiRings <- detectEwLw(PaPi, ew = 0.5)
# xRingList object
PaPiDen <- getDensity(PaPiRings)
PaPiDen$AFO1001a[]
PaPiDen$AFO1001a$density
# xRing object
PaPi_AFO1001a <- getDensity(PaPi$AFO1001a)
# the same
PaPi_1 <- getDensity(PaPi[[1]])
identical(PaPi_AFO1001a, PaPi_1)
# do not work for PaPi[1]
# class(PaPi[1])
# getDensity(PaPi[1]) # 'list' class
[Package xRing version 0.1.1 Index]