Pull out the values from speciesEcoregion table for current time

speciesEcoregionLatestYear(speciesEcoregion, currentTime)

Arguments

speciesEcoregion

A data.table with speciesEcoregion values.

currentTime

The current simulation time e.g., time(sim).

Value

The speciesEcoregion input object, but with data from only one year, the year that is less than or equal to the currentTime