powered by
Individuals are assigned to populations based on the specimen metadata data file (csv) used with gl.read.dart().
gl.merge.pop(x, old = NULL, new = NULL, v = 2)
-- name of the genlight object containing SNP genotypes or a genind object containing presence/absence data [required]
-- a list of populations to be merged [required]
-- name of the new population [required]
-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]
A genlight object with the new population assignments
This script assigns individuals from two nominated populations into a new single population. It can also be used to rename populations.
The script returns a genlight object with the new population assignments.
# NOT RUN { gl <- gl.merge.pop(testset.gl, old=c("EmsubRopeMata","EmvicVictJasp"), new="Outgroup") # }
Run the code above in your browser using DataLab