
Deprecated function to generate migration routes from a BirdFlow model
Source:R/route_migration.R
route_migration.RdThis function is now deprecated and will eventually be deleted. Please
transition to using route() which can now both generate starting locations
by sampling the distributions in bf and use a season name to specify the
time period to route over. The only adjustment that needs to be made is to
use the season argument to route() in place of the migration argument
to route_migration().
Arguments
- bf
BirdFlowmodel- n
the number of routes to generate
- migration
"prebreeding", "pre", or "spring" for the prebreeding migration; or "postbreeding", "post", or "fall" for the postbreeding migration.
- season_buffer
a buffer in timesteps (likely weeks) to add to the beginning and end of the season. The default of 1 means we start a week before the metadata suggests the season starts and continue one week past the end.
Value
A BirdFlowRoutes object with columns:
x,yCoordinates of point along route.
dateDate associated with that point.
timestepTimestep associated with point.
routeUnique ID for that route or individual.
iLocation index for the point (see
i_to_xy()).stay_idWithin each route a sequential id for locations.
stay_lenHow many timesteps was the Bird at that point during the stay (minimum of 1).
It also has experimental attributes:
geom,species,datesThe
geom,species, anddatescomponents of the BirdFlow object the routes are derived from.metadataThe
metadatacomponent of the parent BirdFlow object, with one additional itemroute_type = "synthetic".
See also
route()should be used instead of this function.