landscape_summary {medfateland} | R Documentation |
Forest and soil summaries over space
Description
Functions to calculates a summary function for the forest or soil of all spatial elements
in an object of class sf
containing landscape information.
Usage
landscape_summary(
object,
name,
summary_function,
...,
unlist = FALSE,
progress = FALSE
)
Arguments
object |
An object of class |
name |
A string of the element to summarize: "forest", "soil" or "state". |
summary_function |
A function that accepts objects of class |
... |
Additional arguments to the summary function. |
unlist |
Logical flag to try converting the summaries into different columns |
progress |
Boolean flag to display progress information |
Value
An object of class sf
containing the calculated statistics.
If unlist = FALSE
column 'summary' is a list with summaries for each element.
If unlist = TRUE
different columns are returned instead, one per variable given in the summary function.
Author(s)
Miquel De Cáceres Ainsa, CREAF.
See Also
Examples
# Load plot data and species parameters from medfate
data(example_ifn)
# Load default medfate parameters
data("SpParamsMED")
# Apply forest summary function
landscape_summary(example_ifn, "forest", summary.forest, SpParamsMED)