import_scenarios: Import Management Scenarios

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

View source: R/import_scenarios.R

Description

This function creates a big.matrix object containing the management scenarios stored in a text file.

Usage

1

Arguments

path

A character string specifying the path to the text file.

Details

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).

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, 4 for choppering, and 5 for sodcutting.

Author(s)

Benjamin M. Delory

See Also

read.big.matrix, getwd.

Examples

1
2
path<-system.file("extdata", package="heathland")
sc<-import_scenarios(paste(path, "scenarios.txt", sep="/"))

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