randomDIRECTED: Generate a random network

View source: R/randomDIRECTED.R

randomDIRECTEDR Documentation

Generate a random network

Description

This function generates a random migratory network

Usage

randomDIRECTED(
  nbreeding = 3,
  nwintering = 4,
  nstop = 10,
  pop = 1e+05,
  mean_dist = 1000,
  sd_dist = 200,
  toplot = TRUE
)

Arguments

nbreeding

Number of breeding sites

nwintering

Number of wintering sites

nstop

Number of stopover sites (shared during north and south migration)

pop

population size flowing through network

mean_dist

average distance the species can travel (this can be estimated from real data)

sd_dist

standard deviation of the distances a species can travel (this can be estimated from real data)

toplot

TRUE/FALSE to determine whether the output is plotted or not

Value

a list containting the network which was randomly generated, the tracks that were randomly generated, and the sites that were randomly generated for animals to use.


KiranLDA/migflow documentation built on June 14, 2025, 9:09 a.m.