nfiMetrics {basifoR} | R Documentation |
Tree metrics from NFI data
Description
This function recursively implements dbhMetric
on
data bases of the Spanish National Forest Inventory (NFI) to
derive a variety of tree metrics. Use metrics2Vol
to
recursively derive the metrics plus over bark volumes.
Usage
nfiMetrics(nfi, var = c("d",
"h", "ba", "n", "Hd"),
levels = c("esta",
"espe"), ...)
Arguments
nfi |
|
var |
|
levels |
|
... |
Additional arguments in |
Value
data.frame
containing columns which match the strings in
levels
, plus the variables defined in var
, including
the province pr
(dimensionless
), the diameter
d
('mm'
), the tree height h
('dm'
),
the basal area ba
('m2 tree-1'
), the number of trees
by hectare n
(dimensionless
), and the tree dominant
height Hd
('m'
).
Author(s)
Wilson Lara <wilarhen@gmail.com>, Cristobal Ordonez <a_cristo@pvs.uva.es>, Felipe Bravo <fbravo@pvs.uva.es>
Examples
## seconf NFI
madridNFI <- system.file("ifn3p28_tcm30-293962.zip", package="basifoR")
rmad <- readNFI(madridNFI)[1:10,]
mmad <- nfiMetrics(rmad)
head(rmad,3)
## see metric units
attr(rmad,'units')