Description Usage Arguments Value Note Author(s) See Also Examples
The function guesses the unit of measure of plot size
(ha or m^2) if parameter unit
is set
to auto
:
m^2 one or more plots have size higher than 1
ha all plots
have size lower or equal than 1 Therefore, should larger
than 1 ha plots be carried out the unit
parameter
should be explicitly set to either ha
or
m2
.
1 |
variable |
the variable measured or estimated in the traditional plot |
plotSize |
the plot size |
unit |
a character value to indicate the unit of
measure of |
a single or vector of numeric values, not rounded
The function is vectorized both for variable
and
for plotSize
. Be careful of the recycling rule,
see example section.
Marco Bascietto marco.bascietto@ibaf.cnr.it
Other structuralAnalysis: rfBasalArea
,
rfTreeDensity
, tpBasalArea
,
ttBasalArea
, ttMeanDbh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # dbh from an ideal even-aged plot, in cm
dbhList <- runif(10, min = 30, max = 40)
# Tree density, plot size in m^2
pfExpand(length(dbhList), 500)
# Tree density, plot size in ha
pfExpand(length(dbhList), 0.05)
# Basal area at forest level
pfExpand(tpBasalArea(dbhList), 0.05)
# Vector of tree counts for 10 plots
treeCountList <- sample(30:60, size = 10, replace = TRUE)
# Tree density, plot size is 0.05 ha
pfExpand(treeCountList, 0.05)
# Tree density, first plot size is 0.05 ha, all other plots 0.04 ha
pfExpand(treeCountList, c(0.05, 0.04:9))
# Tree density, first plot size is 0.05 ha, all other plots 0.04 ha,
# wrong call, c(0.05, 0.04) is recycled 5 times
pfExpand(treeCountList, c(0.05, 0.04))
# Tree density, first plot size is 500 m^2, all other plots 0.04 ha,
# be aware that the unit of measure of all plots size is assumed to be m^2 because one plot size is given as m^2
pfExpand(treeCountList, c(500, 0.04:9))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.