loadStructure: Read Structure Output

Description Usage Arguments Examples

Description

Read Structure Output

Usage

1
loadStructure(filename, logfile = NULL)

Arguments

filename

a string containing an .out_f file

logfile

optional string containing logfile produced by structure (default NULL).

Examples

1
2
3
4
5
6
7
8
9
# read in K = 10 Structure file (both out_f and log file)
k10_r1 <- system.file("extdata/microsat_testfiles", "locprior_K10.out_f", package = "starmie")
k10_log <- system.file("extdata/microsat_testfiles", "chain_K10.log", package = "starmie")
# no log
k10_data <- loadStructure(k10_r1)
k10_data
# with log
k10_data <- loadStructure(k10_r1, k10_log)
k10_data

starmie documentation built on May 1, 2019, 8:01 p.m.