Retrieve date associated with timesteps, transitions, or marginals
Source:R/lookup_date.R
lookup_date.Rd
Retrieve date associated with timesteps, transitions, or marginals
Arguments
- x
A vector of one of the following formats:
Integer between 1 and
n_timesteps(bf)
representing timestep.Character with "T" followed by digits that indicate timesteps, (this format is used internally to label timestep dimensions of objects)
Marginal or Transition names. These start with either "T_" or "M_", and then have two timesteps represented by digits and separated by a dash, E.g. "T_01-02".
- bf
A BirdFlow object
- timestep
Deprecated alternative to
x
. Previous versions oflookup_dates()
only supported timestep input and usedtimestep
as the first argument.
Examples
bf <- BirdFlowModels::amewoo
lookup_date(1:5, bf)
#> [1] "2021-01-04" "2021-01-11" "2021-01-18" "2021-01-25" "2021-02-01"