spatialForestSummary: Forest and soil summaries over space

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

Arguments

object

An object of class SpatialPointsLandscape-class, SpatialPixelsLandscape-class or SpatialGridLandscape-class.

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.

Author(s)

Miquel De Cáceres Ainsa, Centre Tecnologic Forestal de Catalunya.

See Also

forest, soil, summary.forest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(medfate)

#Load plot data and species parameters from medfate
data(exampleSPL)
data(SpParamsMED)

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

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

miquelcaceres/medfateland documentation built on June 4, 2019, 1:55 p.m.