harvest_costs(40,
"beech")
# species codes Lower Saxony (Germany)
harvest_costs(40,
211,
species.code.type = "nds")
# vector input
harvest_costs(seq(20, 50, 5),
"spruce")
harvest_costs(40,
rep(c("beech", "spruce"),
each = 3),
cost.level = rep(1:3, 2))
harvest_costs(40,
rep("spruce", 6),
calamity.type = c("none",
"ips.fuchs.2022a",
"ips.timely.fuchs.2022a",
"stand.damage.fuchs.2022b",
"regional.disturbance.fuchs.2022b",
"transregional.calamity.fuchs.2022b"))
# user-defined calamities with respective changes in harvest costs
harvest_costs(40,
rep("spruce", 3),
calamity.type = c("none",
"my.own.calamity.1",
"my.own.calamity.2"),
calamity.factors = dplyr::tibble(
calamity.type = rep(c("none",
"my.own.calamity.1",
"my.own.calamity.2"),
each = 2),
species.group = rep(c("softwood",
"deciduous"),
times = 3),
revenues.factor = c(1.0, 1.0,
0.8, 0.8,
0.2, 0.2),
cost.factor = c(1.0, 1.0,
1.5, 1.5,
1.0, 1.0),
cost.additional = c(0, 0,
0, 0,
5, 5)))
Run the code above in your browser using DataLab