From a base landscape target object, create a series of landscape targets, with one target for one class varying according to a specified sequence.
Source:R/flsgen_create_target_series.R
flsgen_create_target_series.Rd
Create a series of landscape targets, with one target for one class varying according to a specified sequence.
Usage
flsgen_create_target_series(
landscape_targets,
class_name = NULL,
class_id = NULL,
target_key,
sequence
)
Arguments
- landscape_targets
Number of rows
- class_name
Name of the class for the varying target
- class_id
Index of the class for the varying target
- target_key
Varying target key
- sequence
sequence (list) of targets for the varying target
Details
Either the class name of id must be given to identify the class to use for generating the series.
Examples
if (FALSE) {
cls_1 <- flsgen_create_class_targets("class 1", NP=c(1, 10), AREA=c(0, 1000))
cls_2 <- flsgen_create_class_targets("class 2", AREA=c(0, 1000))
ls_targets <- flsgen_create_landscape_targets(200, 200, list(cls_1, cls_2))
target_series <- flsgen_create_target_series(ls_targets, class_name="class 2",
target_key="NP", sequence=seq(1, 10, by=1))
}