Creates a forest
object from Spanish Forest Inventory (SFI) data (DGCN 2005).
extractSFIforest(SFItreeData, SFIshrubData, ID, SpParams,
SFIherbData = NULL, SFIcodes=NULL,
patchsize= 10000, setDefaults=TRUE)
translateSpeciesCodes(x, SFIcodes)
A data frame with measured tree data.
A data frame with measured shrub data.
A string with the ID of the plot to be extracted.
A data frame with species parameters (see details).
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.
A data frame with cover and mean height of the herb layer.
The area of the forest stand, in square meters.
Initializes default values for missing fields in SFI data.
A data frame with a column called 'Especie'.
An object of class forest
.
SFI data needs to be in a specific format. Function extractSFIforest
calls translateSpeciesCodes
internally.
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.