Learn R Programming

starmie (version 0.1.2)

loadStructure: Read Structure Output

Description

Read Structure Output

Usage

loadStructure(filename, logfile = NULL)

Arguments

filename
a string containing an .out_f file
logfile
optional string containing logfile produced by structure (default NULL).

Examples

Run this code
# 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

Run the code above in your browser using DataLab