Skip to contents

Creates an empty forest object.

Usage

emptyforest(ntree = 0, nshrub = 0, nseed = 0)

Arguments

ntree, nshrub

Number of tree and shrub cohorts, respectively.

nseed

Number of species in the seed bank.

Value

An empty forest object.

Author

Miquel De Cáceres Ainsa, CREAF

Examples

# Initializes forest with 2 tree cohorts and 1 shrub cohort
emptyforest(ntree = 2, nshrub = 1)
#> $treeData
#>   Species DBH Height  N Z50 Z95
#> 1    <NA>  NA     NA NA  NA  NA
#> 2    <NA>  NA     NA NA  NA  NA
#> 
#> $shrubData
#>   Species Height Cover Z50 Z95
#> 1    <NA>     NA    NA  NA  NA
#> 
#> $herbCover
#> [1] NA
#> 
#> $herbHeight
#> [1] NA
#> 
#> $seedBank
#> [1] Species Percent
#> <0 rows> (or 0-length row.names)
#> 
#> attr(,"class")
#> [1] "forest" "list"