Learn R Programming

RADami (version 1.1-2)

lengths.report: Return the lengths of all loci in a pyRAD.loci object

Description

Return the lengths of all loci in a pyRAD.loci object

Usage

lengths.report(dat, numtodo = 10,
               reportInterval = 2000,
               high.mem = TRUE)

Arguments

dat
an object of class pyRAD.loci
numtodo
an integer specifying how many loci to return the length of
reportInterval
how many loci between reports of time required to complete when using high.mem = FALSE
high.mem
forces the code to loop through instead of using sapply

Value

A named vector of class integer, with names corresponding to loci whose lengths are returned

Details

Called by summary.pyRAD.loci, and thus not ordinarily needed by users. If looping is used to get lengths, the function runs very slowly, and reportInterval can be useful. In early tests, I was having memory allocation issues, so high.mem was useful. I haven't needed it since then, but maybe you will.

See Also

read.pyRAD, summary.pyRAD.loci

Examples

Run this code
  data(oak.rads)
  lengths.report(oak.rads, -1) # returns all loci
  lengths.report(oak.rads, 20) # returns only the first 20 loci
  identical(oak.rads$radSummary$locus.lengths, lengths.report(oak.rads, -1))

Run the code above in your browser using DataLab