inventoryFromData: Create inventory

Description Usage Arguments Value Examples

Description

Virtualize a forest inventory in forest text file to initialize TROLL model

Usage

1
2
3
4
5
6
7
8
inventoryFromData(forest = getOption("RconTroll.forest"),
  path = getOption("RconTroll.path"), overwrite = FALSE,
  species = read.table(getOption("RconTroll.species"), header = TRUE, dec =
  ".", sep = "", row.names = 1), missing = getOption("RconTroll.missing"),
  spcorrect = TRUE, data, plotcol = "n_parcelle", xcol = "Xutm",
  ycol = "Yutm", censuscol = "campagne", spcol = c("Genre", "espece"),
  dbhcol = "dbh_c", alivecol = "status", NV = 1, NH = 1, plots = c(1),
  year = 1984, alive = 1)

Arguments

forest

int. path to the file to create

path

char. working directory

overwrite

logical. allow to overwrite existing input file

species

df. species trait values (can be open from external file)

missing

(logical, path). missing species should be save and where ?

spcorrect

logical. should species will try to be corrected

data

df. censuses data (can be open from external file)

plotcol

char. name of the column containing plot information

xcol

char. name of the column containing longitude information

ycol

char. name of the column containing latitude information

censuscol

char. name of the column containing census year information

spcol

char. name of the column(s) containing secies information (can be a vector if species and genus are split)

dbhcol

char. name of the column containing dbh information

alivecol

char. name of the column containing alive information

NV

int. vertical number of cells (nb per m)

NH

int. horizontal number of cells (nb per m)

plots

int/char. name or number of the plot to initialize on

year

int. year of the census to intialize on

alive

int/char/logical. code corresponding to alive tree

Value

virtual forest inventory for the TROLL program (forest.txt)

Examples

1

fischer-fjd/RconTroll documentation built on May 16, 2019, 12:57 p.m.