Creates a dispersal file as input for the function gl.sim.WF.run
This function writes a csv file called "dispersal_table.csv" which contains
the dispersal variables for each pair of populations to be used as input for
The values of the variables can be modified using the columns "transfer_each_gen" and "number_transfers" of this file.
See documentation and tutorial for a complete description of the simulations. These documents can be accessed by typing in the R console: browseVignettes(package="dartR”)
gl.sim.create_dispersal( number_pops, dispersal_type = "all_connected", number_transfers = 1, transfer_each_gen = 1, outpath = tempdir(), outfile = "dispersal_table.csv", verbose = NULL )
Number of populations [required].
One of: "all_connected", "circle" or "line" [default "all_connected"].
Number of dispersing individuals. This value can be . modified by hand after the file has been created [default 1].
Interval of number of generations in which dispersal occur. This value can be modified by hand after the file has been created [default 1].
Path where to save the output file. Use outpath=getwd() or outpath='.' when calling this function to direct output files to your working directory [default tempdir(), mandated by CRAN].
File name of the output file [default 'dispersal_table.csv'].
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2, unless specified using gl.set.verbosity].
A csv file containing the dispersal variables for each pair of
populations to be used as input for the function
Other simulation functions:
Custodian: Luis Mijangos -- Post to https://groups.google.com/d/forum/dartr