scenarios: Compute Management Scenarios

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function computes all possible management scenarios based on existing constraints.

Usage

1
2
scenarios(management=c("grazing", "mowing", "burning", "choppering"), 
          constraints=import_constraints(), n=20, show.progress=TRUE, filename=NULL)

Arguments

management

A character vector listing the allowed management practices.

constraints

A constraints object created by import_constraints.

n

The number of years to simulate.

show.progress

A logical value. If TRUE, a progress bar is shown.

filename

The name of the text file to export the results (with the extension: .txt).

Details

If filename is not NULL, the function will export a text file containing the computed scenarios. The text file will be stored in the working directory. This function uses the write.big.matrix function of the bigmemory package to create the text file.

All management scenarios will start with choppering.

Value

Returns a big.matrix object. Each line is a management scenario. The following convention is used: 0 for no management, 1 for grazing, 2 for mowing, 3 for burning, and 4 for choppering.

Author(s)

Benjamin M. Delory

See Also

import_constraints, write.big.matrix, getwd.

Examples

1
2
3
#Number of simulated years: 15
#Do not export the results as a text file
sc<-scenarios(management=c("grazing", "mowing", "burning"), n=15)

BenjaminDelory/heathland documentation built on May 4, 2019, 3:11 a.m.