Learn R Programming

medfate (version 0.8.2)

extractSFIforest: Extract forest from SFI data

Description

Creates a forest object from Spanish Forest Inventory (SFI) data (DGCN 2005).

Usage

extractSFIforest(SFItreeData, SFIshrubData, ID, SpParams,  
                 SFIherbData = NULL, SFIcodes=NULL, 
                 patchsize= 10000, setDefaults=TRUE)
translateSpeciesCodes(x, SFIcodes)

Arguments

SFItreeData

A data frame with measured tree data.

SFIshrubData

A data frame with measured shrub data.

ID

A string with the ID of the plot to be extracted.

SpParams

A data frame with species parameters (see details).

SFIcodes

A string vector (of length equal to the number of rows in SpParams of the SFI species codes that correspond to the model species codification. Each string may contain different coma-separated codes in order to merge SFI species into a single model species.

SFIherbData

A data frame with cover and mean height of the herb layer.

patchsize

The area of the forest stand, in square meters.

setDefaults

Initializes default values for missing fields in SFI data.

x

A data frame with a column called 'Especie'.

Value

An object of class forest.

Details

SFI data needs to be in a specific format. Function extractSFIforest calls translateSpeciesCodes internally.

References

DGCN (2005). Tercer Inventario Forestal Nacional (1997-2007): Catalunya. Direcci<U+00F3>n General de Conservaci<U+00F3>n de la Naturaleza, Ministerio de Medio Ambiente, Madrid.

See Also

forest