calculateConcordance: Calculate Concordance.

Description Usage Arguments Details Value


Calculates concordance and discordance for profiles in multiple datasets.


calculateConcordance(data, = NA, no.marker = "NO MARKER",
  no.sample = "NO SAMPLE", delimeter = ",", list.all = FALSE,
  debug = FALSE)



list of data frames in 'slim' format with at least columns 'Sample.Name', 'Marker', and 'Allele'.

character vector for DNA typing kit names in same order and of same lengths as data sets in 'data' list. Default is NA in which case they will be numbered.


character vector for string when marker is missing.


character vector for string when sample is missing.


character to separate the alleles in a genotype. Default is comma e.g '12,16'.


logical TRUE to return missing samples.


logical indicating printing debug information.


Takes a list of datasets as input. It is assumed that each unique sample name represent a result originating from the same source DNA and thus is expected to give identical DNA profiles. The function first compare the profiles for each sample across datasets and lists discordant results. Then it performs a pair-wise comparison and compiles a concordance table. The tables are returned as two data frames in a list. NB! Typing and PCR artefacts (spikes, off-ladder peaks, stutters etc.) must be removed before analysis. NB! It is expected that the unique set of marker names across a dataset is present in each sample for that dataset (a missing marker is a discordance).


list of data.frames (discordance table, and pair-wise comparison).

Search within the strvalidator package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.