write_migrn: Create input file for Migrate-N

Description Usage Arguments

Description

Not a function for general use, please use save_microsimr() instead

Usage

1
write_migrn(genotypes, filename, n_ind, n_pop, n_loc, title)

Arguments

genotypes

A matrix outputted by sim_microsats function.

filename

A character string indicating the filename to be used for saving the input file.

n_ind

An integer indicating the number of sampled diploid individuals if n_pop = 1, or a vector of integers indicating the number of diploid individuals sampled in each population in n_pop > 1.

n_pop

An integer indicating the number of populations simulated.

n_loc

An integer indicating the number of loci simulated.

title

A character string to be used as the title of the input file, only used if the format allows it.


andersgs/microsimr documentation built on May 12, 2019, 2:42 a.m.