pop2indiv {genomatic} | R Documentation |
Takes population names and the respective sample size per population (n) and expands the population names to sample names of population\_name\_1, . . ., population\_name\_n.
pop2indiv(sites)
sites |
data.grame containing population names and sample sizes. |
The object ‘samps’ should be a vector of factors containing the population names. The object ‘n’ should be a vector of integers containing population sample sizes in the same population order as the object ‘samps.’
returns a vector of character strings where each element is a population name and sample number (e.g., population\_name\_1, . . ., population\_name\_n).
Brian J. Knaus bknaus@fs.fed.us http://brianknaus.com
Knaus, B.J. In prep. Genomatic: an R package for DNA fragment analysis project management.