Learn R Programming

strataG (version 1.0.3)

parseLocusNames: Parse Locus Names

Description

Parse locus names from a matrix where alleles are in consecutive columns.

Usage

.parseLocusNames(locus.names, ploidy)

Arguments

locus.names
a vector of column names, where each locus must be named with the same roots. For example, diploid locus 'ABCD' would have two columns named something like 'ABCD.1' and 'ABCD.2', or 'ABCD_A' and 'ABCD_B'.
ploidy
integer representing the ploidy of the data.

Value

  • A vector of the root locus names.