majorities
creates a csv table of numerical alleles with group
assignation and majority vote values with indications of any within group
ties.
majorities(dist, h, errors)
A list object created after running dissimilarity
.
Integer. Represents determined mismatch value.
File name of the sample error results data csv as a character string.
A csv of numerical alleles with group assignation, majority vote and indicated ties written to the `results/cluster/` sub-directory.
When run it uses the list object created by running
dissimilarity
, a maximum number of allowable mismatches
(or h value), the filtered allele data set from running
miss_threshold
and the sample errors from running
gen_errors
to create a csv. The output contains the numerical
alleles with group assignation in a wide format which also displays the
majority vote per group and any ties.
if (FALSE) {
majorities(dist = dissimilarity_list, h = 5, errors = "sample_error_results.csv")
}