tree_init_params: Generate tree initialization table for define_hisafe

Description Usage Arguments Value See Also Examples

View source: R/define.R

Description

Generates a tree initialization table suitable for passing to define_hisafe. The output of this function is always passed to define_hisafe via the tree.initialization argument (see example below). Any passed parameters modify the table in the provided template.

Usage

1
tree_init_params(template, ...)

Arguments

template

A character string of the path to the directory containing the template set of Hi-sAFe simulation folders/files to use. See define_hisafe for more details.

...

Any parameters of Hi-sAFe tree initialization table:

  • "species"

  • "height"

  • "crownBaseHeight"

  • "crownRadius"

  • "treeX"

  • "treeY"

Value

A list containing a Hi-sAFE tree initialization table.

See Also

Other hisafe definition functions: define_hisafe_file(), define_hisafe(), layer_init_params(), layer_params(), root_init_params(), variety_params()

Examples

1
2
3
4
5
6
## Not run: 
hip <- define_hisafe(path = getwd(), template = "agroforestry",
                    tree.initialization = tree_init_params(template = "agroforestry",
                                                           height   = 2))

## End(Not run)

kevinwolz/hisafer documentation built on Oct. 19, 2020, 4:43 p.m.