{assignPOP}R Documentation

Compile genetic and other non-genetic data


This function allows you to combine genetic and other non-genetic data, such as morphometrics, of the observations for assignment tests.

Usage, add.x, method = "common", skipQ = F)



A returned object (list) from the function read.genpop() or reduce.allele().


A file containing non-genetic data that has sample ID in the first column. The sample ID must be the same as your GENEPOP file.


A method to match sample ID between genetic and non-genetic data. The "common" method only concatenate the data that has sample ID in both files. If an individual only exists in one of the files, this individual will be discarded.


A logical variable to determine whether prompting interactive dialogue. If set TRUE, input data type will be recognized as default type and not be verified by the user.


This function returns a new object (list) that comprises 5 items. [[1]] data matrix including genetic and non-genetic data, [[2]] a sample ID vector, [[3]] a locus name vector, [[4]] a vector of non-genetic variable names, and [[5]] the number of non-genetic variables.

[Package assignPOP version 1.3.0 Index]