plot: Quoted name of the plot variable. used to differentiate the data's plots. If this argument is missing, the defined groups in the data frame will be used, If there are no groups in the data, the function will fail.
plot_area: Quoted name of the plot area variable, or a numeric vector with the plot area value. The plot area value must be in square meters.
dbh: Optional parameter. Quoted name of the diameter at breast height variable. If supplied, will be used to calculate the mean diameter per plot, quadratic diameter (q), basal area and basal area per hectare. Default NA.
th: Optional parameter. Quoted name of the total height variable. If supplied, will be used to calculate the mean total height, and the dominant height variable, if the dh is NA. Default NA.
.groups: Optional argument. Quoted name(s) of grouping variables that can be added to differentiate subdivisions of the data. Default: NA.
total_area: Optional argument. Quoted name of the total area variable, or a numeric vector with the total area value. The total area value must be in hectares. Default: NA.
vwb: Optional parameter. Quoted name of the volume with bark variable. If supplied, will be used to calculate the total vwb per plot, and vwb per hectare per plot. Default NA.
vwob: Optional parameter. Quoted name of the volume without bark variable. If supplied, will be used to calculate the total vwob per plot, and vwob per hectare per plot. Default NA.
dh: Optional parameter. Quoted name of the dominant height variable. If supplied, will be used to calculate the mean dominant height per plot. If not, the ht variable supplied will be used to calculate the average of the top two trees of each plot, and use that as dh. Default: NA.
age: Optional parameter. Quoted name of the age variable. If supplied, will be used to calculate the average age per plot. Default: NA.
dec_places: Numeric value for the number of decimal places to be used in the output tables. Default: 4.
Returns
A data frame with informations per plot.
Examples
library(forestmangr)data("exfm21")head(exfm21)# Obligatory arguments. Basic informations about the plot.plot_summarise(exfm21,"PLOT",810)# Area values can be numeric, or a variable nameplot_summarise(exfm21,"PLOT","PLOT_AREA")# With DBH supplied, we get the mean diameter, quadratic diameter,# basal area and basal area per hectare:plot_summarise(exfm21,"PLOT","PLOT_AREA","DBH")# With TH supplied, we get the mean total height and dominant heightplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST")# With strata supplied, we divide the data into 2 strataplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA")# The strata area can also be suppliedplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA","STRATA_AREA")# With VWB supplied, we get the total vwb, and vwb per hectareplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA","STRATA_AREA","VWB")# With VWOB supplied, we get the total vwob, and vwob per hectareplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA","STRATA_AREA","VWB","VWOB")# If the data already has a dominant height variable, it can also be supplied hereplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA","STRATA_AREA","VWB","VWOB","DH")# With the AGE variable supplied, we get the average age of each plotplot_summarise(exfm21,"PLOT","PLOT_AREA","DBH","TH_EST","STRATA","STRATA_AREA","VWB","VWOB","DH","AGE")