R/bpec.load.R

Defines functions bpec.loadCoords bpec.loadSeq

Documented in bpec.loadCoords bpec.loadSeq

bpec.loadSeq = function(seqsFile) {
  rawSeqs = read.nexus.data(seqsFile)
  return(rawSeqs)
}

bpec.loadCoords = function(coordsFile) {
 coordsLocs = read.table(
  coordsFile, header = FALSE, fill = TRUE, col.names = 1:max(count.fields(coordsFile))
  )
 return(coordsLocs)
}

Try the BPEC package in your browser

Any scripts or data that you put into this service are public.

BPEC documentation built on Aug. 23, 2017, 1:02 a.m.