Learn R Programming

medfate (version 0.7.4)

spatialForestSummary: Forest and soil summaries over space

Description

Functions to calculates a summary function for the forest or soil of all cells in a SpatialPointsLandscape-class or SpatialGridLandscape-class.

Usage

spatialForestSummary(object, summaryFunction, ...)
spatialSoilSummary(object, summaryFunction, ...)

Arguments

summaryFunction

A function that accepts objects of class forest or soil, respectively.

...

Additional arguments to the summary function.

Value

An object of class SpatialPointsDataFrame, SpatialPixelsDataFrame or SpatialGridDataFrame, depending on the input, containing the calculated statistics.

See Also

forest, soil, summary.forest

Examples

Run this code
# NOT RUN {
#Load plot data
data(exampleSPL)

#Load species parameters
data(SpParamsMED)

#Apply summary function
y <- spatialForestSummary(exampleSPL,summary.forest, SpParamsMED)
head(y@data)

#Plot basal area
spplot(y["BA"])

# }

Run the code above in your browser using DataLab