mitigate_loop: Loop through months to find most efficacious mitigation...

View source: R/mitigate_loop.R

mitigate_loopR Documentation

Loop through months to find most efficacious mitigation window

Description

To test the effects of seasonally displacing ship traffic (i.e., rescheduling transits from a given month into other months) or seasonally cancelling ship traffic (i.e., a moratorium), you can use the shipstrike function mitigate_loop(), which applies the displacement window to each candidate month in a loop. This allows us to determine which month would be the most efficacious target for mitigation.

Usage

mitigate_loop(
  outcomes,
  mitigation_duration = 1,
  reschedule = FALSE,
  vessels = c("Tanker > 100m", "Cargo > 100m", "Passenger > 100m",
    "LNG Canada tanker in-heel", "LNG Canada tanker in-product",
    "LNG Canada tug in-heel", "LNG Canada tug in-product", "Cedar LNG tanker in-heel",
    "Cedar LNG tanker in-product", "Cedar LNG tug in-heel", "Cedar LNG tug in-product")
)

Arguments

outcomes

The result of outcome_predict().

mitigation_duration

Number indicating the number of months to use as a mitigation period. Keen et al. (2023) tests durations of 1, 2, and 3 months.

reschedule

Boolean, with default FALSE, indicating whether traffic during the mitigation window should be rescheduled (reschedule == TRUE) or cancelled (⁠FALSE)⁠.

vessels

A character vector indicating for which vessel types this mitigation action applies.

Value

See the shipstrike package vignette & Keen et al. (2023) for details.


ericmkeen/shipstrike documentation built on May 21, 2023, 7:05 a.m.