Description Usage Arguments Details Value Author(s) Examples
View source: R/import_constraints.R
This function creates a matrix containing the constraints needed for the computation of management scenarios.
1 | import_constraints(path=NULL)
|
path |
A character string specifying the path to the folder containing the text file containing the constraints. |
To run import_constraints
efficiently, the constraints must be stored in a text file (“constraints.txt”). By default (path=NULL
), the function imports the constraints stored in the “extdata” folder of the package.
Returns a matrix. The matrix is a constraints
object containing the amount of time (in years) that one has to wait to perform a new management practice (column) when another management (row) was already performed at a site.
Benjamin M. Delory
1 | constraints<-import_constraints()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.