gPdf2gsi.sim: convert a 'gPipe.data.frame' into a gsi_sim input file

Description Usage Arguments

Description

gPdf2gsi.sim takes as input a data frame in gPipe.data.frame format converts it into a gsi_sim input file. If you supply a list of pop-names (preferably as a factor with levels ordered as you want the pops to appear) to the pop.ize.them variable, then it splits them into pops, ordered as in the factor

Usage

1
gPdf2gsi.sim(d, pop.ize.them = NULL, outfile = "gsi_sim_file.txt")

Arguments

d

the data frame. See documentation for gPipe.data.frame for format

pop.ize.them

vector that should be of length nrow(d) that gives the populations in which the individuals belong. It this is a factor, then populations are placed in the gsi_sim output file according to the order in the levels attribute of the factor.

outfile

path to the output file


eriqande/gpiper documentation built on May 16, 2019, 8:46 a.m.