bpec.loadCoords: Load location data

Description Usage Arguments Details Value Author(s) Examples

View source: R/bpec.load.R

Description

Create R objects of locations from corresponding file.

Usage

1
bpec.loadCoords(coordsFile, header = FALSE)

Arguments

coordsFile

The name of the coordinate and sequence file in full, eg "coordsLocs.txt".

header

If TRUE, then the first row of the file is assumed to be variable names.

Details

Given the names of the file, this command will create an R objects of the coordinates and locations that can be fed into bpec.mcmc.

Value

coordsLocs

R object of locations and corresponding haplotypes.

Author(s)

Ioanna Manolopoulou & Axel Hille

Examples

1
2
3
4
5
6
7
8
9
#to load existing example file from BPEC
coordsFile <- system.file("coordsLocsFile.txt",package = "BPEC")
coordsLocs <- bpec.loadCoords(coordsFile, header = TRUE)

## Not run: 
#to load a different input file "coordsLocs.txt"
coordsLocs <- bpec.loadCoords("coordsLocs.txt", header = TRUE)

## End(Not run)

BPEC documentation built on Aug. 30, 2018, 1:03 a.m.

Related to bpec.loadCoords in BPEC...