assign.matrix {assignPOP} | R Documentation |
This function generates a pairwise assignment matrix with mean and variation of assignment accuracies estimated across all assignment tests.
assign.matrix(
dir = NULL,
train.loci = "all",
train.inds = "all",
k.fold = "all"
)
dir |
A character string to specify the folder that has your cross-validation assignment results. |
train.loci |
Choose your proportions of training loci used in Monte-Carlo or K-fold cross-validation. Default is "all". |
train.inds |
Choose your numbers or proportions of training individuals used in Monte-Carlo cross-validation. Default is "all". |
k.fold |
Choose the k fold values used in K-fold cross-validation. Default is "all". |
The function returns a matrix in R console as well as a file named "assignment_matrix.txt" in the folder.