View source: R/gl.define.pop.r
gl.define.pop | R Documentation |
The script reassigns existing individuals to a new population and removes their existing population assignment.
The script returns a genlight object with the new population assignment.
gl.define.pop(x, ind.list, new, verbose = NULL)
x |
Name of the genlight object containing SNP genotypes [required]. |
ind.list |
A list of individuals to be assigned to the new population [required]. |
new |
Name of the new population [required]. |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity]. |
A genlight object with the redefined population structure.
Custodian: Arthur Georges – Post to https://groups.google.com/d/forum/dartr
popNames(testset.gl)
gl <- gl.define.pop(testset.gl, ind.list=c('AA019073','AA004859'),
new='newguys')
popNames(gl)
indNames(gl)[pop(gl)=='newguys']
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.