Learn R Programming

strataG (version 1.0.5)

strataG-internal: Internal Functions

Description

Functions intended to be used only by functions within the strataG package.

Usage

.getFileLabel(g, label = NULL)
.parseLocusNames(locus.names, ploidy)
.setupClusters(num.cores = NULL)
.strataPairs(g)

Arguments

g
a gtypes object.
label
label for filename(s). Default is the gtypes description if present.
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.
num.cores
number of cores for multithreading. If NULL, the number used is set to the value of detectCores() - 1.
g
a gtypes object.

Details