Learn R Programming

strataG (version 2.0.2)

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)

.removeIdsMissingAllLoci(g)

.applyPerLocus(fun, g, ...)

.numericLoci(g, min.val = 0)

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.

fun

a function that takes one locus column at a time.

g

a '>gtypes object.

g

a '>gtypes object.

g

a '>gtypes object.

g

a '>gtypes object.

Details

.getFileLabel

.parseLocusNames

.setupClusters

.strataPairs