This function is mostly for internal use but exported for advanced users.
It's primary purpose is to pad timesteps with zeros for looking up
transition names. It is called from lookup_transitions()
which is in
turn used by get_transition()
. Padding is generally two digit but the
level of padding is stored in the BirdFlow object so that we'll
be able to switch to three digit timesteps easily if, for example,
someday we decide to have daily timesteps.
Examples
bf <- BirdFlowModels::amewoo
pad_timestep(1:5, bf)
#> [1] "01" "02" "03" "04" "05"