Skip to contents

Clean inventory (only alive trees within the inventoried plot)

Usage

cleaninventory(
  inventory,
  plotmask,
  advancedloggingparameters = loggingparameters()
)

Arguments

inventory

Input inventory (see the inputs formats and metadata in the vignette) (data.frame)

plotmask

Inventoried plot mask (SpatialPolygonsDataFrame)

advancedloggingparameters

Other parameters of the logging simulator loggingparameters (list)

Value

The inventory (data.frame) with only alive trees within the inventoried plot ('TreesIn' = "1").

Examples

data(Paracou6_2016) # inventory
data(PlotMask) # the inventoried plot mask
new <- cleaninventory(Paracou6_2016,
                      PlotMask, loggingparameters(MinDBHValue = 5))