Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/import_scenarios.R
This function creates a big.matrix
object containing the management scenarios stored in a text file.
1 | import_scenarios(path)
|
path |
A character string specifying the path to the text file. |
This function uses the read.big.matrix
function of the bigmemory
package to create a big.matrix
object. Ideally, the text file containing management scenarios should be created with the scenarios
function of this package (filename
argument).
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, 4 for choppering, and 5 for sodcutting.
Benjamin M. Delory
1 2 | path<-system.file("extdata", package="heathland")
sc<-import_scenarios(paste(path, "scenarios.txt", sep="/"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.