readQClumpp: Convert CLUMPP format numeric text files to qlist.

Description Usage Arguments Details Value Examples

View source: R/read.R

Description

Takes one or more CLUMPP format numeric text files and converts them to a list of dataframes.

Usage

1

Arguments

files

A character or character vector of one or more COMBINED, ALIGNED or MERGED files. COMBINED files are generated from clumppExport. ALIGNED and MERGED files are generated by CLUMPP. Use choose.files(multi=TRUE) to select interactively.

Details

See the vignette for more details.

Value

A list of lists with dataframes is returned. Each list item is named by input filename. Multiple runs within one file are suffixed by -1, -2 etc.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cfiles1 <- system.file("files/STRUCTUREpop_K4-combined.txt",package="pophelper")
cfiles2 <- system.file("files/STRUCTUREpop_K4-combined-aligned.txt",
package="pophelper")
cfiles3 <- system.file("files/STRUCTUREpop_K4-combined-merged.txt",
package="pophelper")

# create a qlist
clist1 <- readQClumpp(cfiles1)
clist2 <- readQClumpp(cfiles2)
clist3 <- readQClumpp(cfiles3)

royfrancis/pophelper documentation built on Jan. 1, 2021, 4:58 p.m.