parse_forestable {medfateland}R Documentation

Parse forestable

Description

Transforms a data frame or sf object issued from package forestables into an sf object for simulations with medfateland.

Usage

parse_forestable(
  x,
  keepSpeciesCodes = TRUE,
  filterMissingSpecies = TRUE,
  filterDeadTrees = TRUE,
  filterCutTrees = TRUE,
  keepUnfilteredCopy = FALSE,
  minimumTreeDBH = 0.1,
  progress = FALSE
)

Arguments

x

A data frame or sf object issued from package forestables.

keepSpeciesCodes

Keeps forest inventory species codes.

filterMissingSpecies

If TRUE, filters out records where species is missing.

filterDeadTrees

If TRUE, filters out dead trees (Spanish forest inventory IFN3 or IFN4).

filterCutTrees

If TRUE, filters out cut trees (Spanish forest inventory IFN3 or IFN4).

keepUnfilteredCopy

If TRUE, an additional column is given where dead/cut trees have not been filtered.

minimumTreeDBH

Minimum DBH for keeping a tree record.

progress

A logical flag to include a progress bar while processing the data.

Details

This function retrieves the following information from the forestables object:

Value

An sf object including a 'forest' column. If keepUnfilteredCopy=TRUE an additional column 'forest_unfiltered' is also given.


[Package medfateland version 2.6.0 Index]